Changeset View
Changeset View
Standalone View
Standalone View
src/KChart/KChartAbstractArea.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 56 | /** | |||
---|---|---|---|---|---|
60 | * class, but you would overwrite AbstractLayoutItem::paint() instead. | 60 | * class, but you would overwrite AbstractLayoutItem::paint() instead. | ||
61 | */ | 61 | */ | ||
62 | virtual void paintIntoRect( QPainter& painter, const QRect& rect ); | 62 | virtual void paintIntoRect( QPainter& painter, const QRect& rect ); | ||
63 | 63 | | |||
64 | /** | 64 | /** | ||
65 | * Call paintAll, if you want the background and the frame to be drawn | 65 | * Call paintAll, if you want the background and the frame to be drawn | ||
66 | * before the normal paint() is invoked automatically. | 66 | * before the normal paint() is invoked automatically. | ||
67 | */ | 67 | */ | ||
68 | void paintAll( QPainter& painter ) Q_DECL_OVERRIDE; | 68 | void paintAll( QPainter& painter ) override; | ||
69 | 69 | | |||
70 | /** | 70 | /** | ||
71 | * This is called at layout time by KChart::AutoSpacerLayoutItem::sizeHint(). | 71 | * This is called at layout time by KChart::AutoSpacerLayoutItem::sizeHint(). | ||
72 | * | 72 | * | ||
73 | * The method triggers AbstractArea::sizeHint() to find out the | 73 | * The method triggers AbstractArea::sizeHint() to find out the | ||
74 | * amount of overlap at the left edge of the area. | 74 | * amount of overlap at the left edge of the area. | ||
75 | * | 75 | * | ||
76 | * \note The default implementation is not using any caching, | 76 | * \note The default implementation is not using any caching, | ||
Show All 40 Lines | |||||
117 | * for derived classes that have complex work to do in sizeHint(). | 117 | * for derived classes that have complex work to do in sizeHint(). | ||
118 | * All we have here is a primitive flag to be set by the caller | 118 | * All we have here is a primitive flag to be set by the caller | ||
119 | * if it is sure that no sizeHint() needs to be called. | 119 | * if it is sure that no sizeHint() needs to be called. | ||
120 | */ | 120 | */ | ||
121 | virtual int bottomOverlap( bool doNotRecalculate=false ) const; | 121 | virtual int bottomOverlap( bool doNotRecalculate=false ) const; | ||
122 | 122 | | |||
123 | protected: | 123 | protected: | ||
124 | AbstractArea(); | 124 | AbstractArea(); | ||
125 | QRect areaGeometry() const Q_DECL_OVERRIDE; | 125 | QRect areaGeometry() const override; | ||
126 | void positionHasChanged() Q_DECL_OVERRIDE; | 126 | void positionHasChanged() override; | ||
127 | 127 | | |||
128 | Q_SIGNALS: | 128 | Q_SIGNALS: | ||
129 | void positionChanged( AbstractArea * ); | 129 | void positionChanged( AbstractArea * ); | ||
130 | }; // End of class AbstractArea | 130 | }; // End of class AbstractArea | ||
131 | 131 | | |||
132 | } | 132 | } | ||
133 | #endif // KCHARTABSTRACTAREA_H | 133 | #endif // KCHARTABSTRACTAREA_H |