#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>
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 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() |
Definition at line 880 of file KDChartChart.cpp.
#define SET_ALL_MARGINS_TO_ZERO |
Definition at line 55 of file KDChartChart.cpp.
static T* findOrCreateLayoutByObjectName | ( | QLayout * | parentLayout, | |
const char * | name | |||
) | [static] |
Definition at line 437 of file KDChartChart.cpp.
00438 { 00439 T *box = qFindChild<T*>( parentLayout, QString::fromLatin1( name ) ); 00440 if ( !box ) { 00441 box = new T(); 00442 // TESTING(khz): set the margin of all of the layouts to Zero 00443 #if defined SET_ALL_MARGINS_TO_ZERO 00444 box->setMargin(0); 00445 #endif 00446 box->setObjectName( QString::fromLatin1( name ) ); 00447 box->setSizeConstraint( QLayout::SetFixedSize ); 00448 } 00449 return box; 00450 }