Defines | Functions

KDChartChart.cpp File Reference

#include "KDChartChart.h"
#include "KDChartChart_p.h"
#include <QList>
#include <QtDebug>
#include <QGridLayout>
#include <QLabel>
#include <QHash>
#include <QToolTip>
#include <QPainter>
#include <QPaintEvent>
#include <QLayoutItem>
#include <QPushButton>
#include <QApplication>
#include <QEvent>
#include "KDChartCartesianCoordinatePlane.h"
#include "KDChartAbstractCartesianDiagram.h"
#include "KDChartHeaderFooter.h"
#include "KDChartEnums.h"
#include "KDChartLegend.h"
#include "KDChartLayoutItems.h"
#include <KDChartTextAttributes.h>
#include <KDChartMarkerAttributes>
#include "KDChartPainterSaver_p.h"
#include "KDChartPrintingParameters.h"
#include <KDABLibFakes>
Include dependency graph for KDChartChart.cpp:

Go to the source code of this file.

Defines

#define ADD_AUTO_SPACER_IF_NEEDED(spacerRow, spacerColumn, hLayoutIsAtTop, hLayout, vLayoutIsAtLeft, vLayout)
#define ADD_VBOX_WITH_LEGENDS(row, column, align)
#define d   d_func()
#define SET_ALL_MARGINS_TO_ZERO

Functions

template<typename T >
static T * findOrCreateLayoutByObjectName (QLayout *parentLayout, const char *name)

Define Documentation

#define ADD_AUTO_SPACER_IF_NEEDED (   spacerRow,
  spacerColumn,
  hLayoutIsAtTop,
  hLayout,
  vLayoutIsAtLeft,
  vLayout 
)
Value:
{ \
            if( hLayout || vLayout ) { \
                AutoSpacerLayoutItem * spacer \
                = new AutoSpacerLayoutItem( hLayoutIsAtTop, hLayout, vLayoutIsAtLeft, vLayout ); \
                planeLayout->addItem( spacer, spacerRow, spacerColumn, 1, 1 ); \
                spacer->setParentLayout( planeLayout ); \
                planeLayoutItems << spacer; \
            } \
        }
#define ADD_VBOX_WITH_LEGENDS (   row,
  column,
  align 
)
Value:
{ \
    QVBoxLayout* innerLayout = new QVBoxLayout(); \
    for (int i = 0; i < count; ++i) { \
        legend = list.at(i); \
        if( legend->alignment() == ( align ) ) \
            innerLayout->addItem( new MyWidgetItem(legend, Qt::AlignLeft) ); \
    } \
    gridLayout->addLayout( innerLayout, row, column, ( align  ) ); \
}
#define d   d_func()
#define SET_ALL_MARGINS_TO_ZERO

Definition at line 56 of file KDChartChart.cpp.


Function Documentation

template<typename T >
static T* findOrCreateLayoutByObjectName ( QLayout *  parentLayout,
const char *  name 
) [static]

Definition at line 438 of file KDChartChart.cpp.