#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.
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 ) ); \
}
Definition at line 894 of file KDChartChart.cpp.
Referenced by KDChart::Chart::addCoordinatePlane(), KDChart::Chart::addHeaderFooter(), KDChart::Chart::addLegend(), KDChart::Chart::backgroundAttributes(), KDChart::Chart::coordinatePlane(), KDChart::Chart::coordinatePlaneLayout(), KDChart::Chart::coordinatePlanes(), KDChart::Chart::event(), KDChart::Chart::frameAttributes(), KDChart::Chart::headerFooter(), KDChart::Chart::headerFooters(), KDChart::Chart::legend(), KDChart::Chart::legends(), KDChart::Chart::mouseDoubleClickEvent(), KDChart::Chart::mouseMoveEvent(), KDChart::Chart::mousePressEvent(), KDChart::Chart::mouseReleaseEvent(), KDChart::Chart::paint(), KDChart::Chart::paintEvent(), KDChart::Chart::reLayoutFloatingLegends(), KDChart::Chart::replaceCoordinatePlane(), KDChart::Chart::replaceHeaderFooter(), KDChart::Chart::replaceLegend(), KDChart::Chart::resizeEvent(), KDChart::Chart::setBackgroundAttributes(), KDChart::Chart::setCoordinatePlaneLayout(), KDChart::Chart::setFrameAttributes(), KDChart::Chart::setGlobalLeading(), KDChart::Chart::setGlobalLeadingBottom(), KDChart::Chart::setGlobalLeadingLeft(), KDChart::Chart::setGlobalLeadingRight(), KDChart::Chart::setGlobalLeadingTop(), KDChart::Chart::takeCoordinatePlane(), KDChart::Chart::takeHeaderFooter(), and KDChart::Chart::takeLegend().
#define SET_ALL_MARGINS_TO_ZERO |
Function Documentation
template<typename T >
static T* findOrCreateLayoutByObjectName |
( |
QLayout * |
parentLayout, |
|
|
const char * |
name | |
|
) |
| | [static] |