![]() |
KD Chart API Documentation
3.1
|
#include <KDChartLayoutItems.h>
Public Member Functions | |
AbstractLayoutItem (Qt::Alignment itemAlignment={}) | |
virtual void | paint (QPainter *)=0 |
virtual void | paintAll (QPainter &painter) |
virtual void | paintCtx (PaintContext *context) |
QLayout * | parentLayout () |
void | removeFromParentLayout () |
void | setParentLayout (QLayout *lay) |
virtual void | setParentWidget (QWidget *widget) |
virtual void | sizeHintChanged () const |
Protected Attributes | |
QWidget * | mParent = nullptr |
QLayout * | mParentLayout = nullptr |
Base class for all layout items of KD Chart
Definition at line 39 of file KDChartLayoutItems.h.
|
inline |
Definition at line 42 of file KDChartLayoutItems.h.
|
pure virtual |
Implemented in KDChart::TextBubbleLayoutItem, KDChart::TernaryCoordinatePlane, KDChart::TernaryAxis, KDChart::PolarCoordinatePlane, KDChart::AutoSpacerLayoutItem, KDChart::VerticalLineLayoutItem, KDChart::HorizontalLineLayoutItem, KDChart::LineWithMarkerLayoutItem, KDChart::LineLayoutItem, KDChart::MarkerLayoutItem, KDChart::TextLayoutItem, KDChart::CartesianCoordinatePlane, and KDChart::CartesianAxis.
Referenced by KDChart::AbstractArea::paintAll().
|
virtual |
Default impl: just call paint.
Derived classes like KDChart::AbstractArea are providing additional action here.
Reimplemented in KDChart::TextArea, KDChart::AbstractArea, and KDChart::TernaryAxis.
Definition at line 51 of file KDChartLayoutItems.cpp.
|
virtual |
Default impl: Paint the complete item using its layouted position and size.
Reimplemented in KDChart::TernaryAxis, KDChart::LeveyJenningsAxis, and KDChart::CartesianAxis.
Definition at line 59 of file KDChartLayoutItems.cpp.
References KDChart::PaintContext::painter().
|
inline |
Definition at line 65 of file KDChartLayoutItems.h.
|
inline |
Definition at line 69 of file KDChartLayoutItems.h.
Referenced by KDChart::Chart::takeCoordinatePlane(), and KDChart::Chart::takeHeaderFooter().
|
inline |
Definition at line 61 of file KDChartLayoutItems.h.
Referenced by KDChart::Chart::addHeaderFooter(), and KDChart::Chart::takeHeaderFooter().
|
virtual |
Inform the item about its widget: This enables the item, to trigger that widget's update, whenever the size of the item's contents has changed.
Thus, you need to call setParentWidget on every item, that has a non-fixed size.
Definition at line 46 of file KDChartLayoutItems.cpp.
References mParent.
Referenced by KDChart::HeaderFooter::setParent(), and KDChart::AbstractCartesianDiagram::takeAxis().
|
virtual |
Report changed size hint: ask the parent widget to recalculate the layout.
Definition at line 68 of file KDChartLayoutItems.cpp.
|
protected |
Definition at line 80 of file KDChartLayoutItems.h.
Referenced by setParentWidget().
|
protected |
Definition at line 81 of file KDChartLayoutItems.h.