Changeset View
Changeset View
Standalone View
Standalone View
src/KChart/Polar/KChartPolarDiagram.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
43 | public: | 43 | public: | ||
44 | explicit PolarDiagram( | 44 | explicit PolarDiagram( | ||
45 | QWidget* parent = nullptr, PolarCoordinatePlane* plane = nullptr ); | 45 | QWidget* parent = nullptr, PolarCoordinatePlane* plane = nullptr ); | ||
46 | virtual ~PolarDiagram(); | 46 | virtual ~PolarDiagram(); | ||
47 | 47 | | |||
48 | protected: | 48 | protected: | ||
49 | // Implement AbstractDiagram | 49 | // Implement AbstractDiagram | ||
50 | /** \reimpl */ | 50 | /** \reimpl */ | ||
51 | void paint ( PaintContext* paintContext ) Q_DECL_OVERRIDE; | 51 | void paint ( PaintContext* paintContext ) override; | ||
52 | 52 | | |||
53 | public: | 53 | public: | ||
54 | /** \reimpl */ | 54 | /** \reimpl */ | ||
55 | void resize ( const QSizeF& area ) Q_DECL_OVERRIDE; | 55 | void resize ( const QSizeF& area ) override; | ||
56 | 56 | | |||
57 | // Implement AbstractPolarDiagram | 57 | // Implement AbstractPolarDiagram | ||
58 | /** \reimpl */ | 58 | /** \reimpl */ | ||
59 | qreal valueTotals () const Q_DECL_OVERRIDE; | 59 | qreal valueTotals () const override; | ||
60 | /** \reimpl */ | 60 | /** \reimpl */ | ||
61 | qreal numberOfValuesPerDataset() const Q_DECL_OVERRIDE; | 61 | qreal numberOfValuesPerDataset() const override; | ||
62 | /** \reimpl */ | 62 | /** \reimpl */ | ||
63 | qreal numberOfGridRings() const Q_DECL_OVERRIDE; | 63 | qreal numberOfGridRings() const override; | ||
64 | 64 | | |||
65 | virtual PolarDiagram * clone() const; | 65 | virtual PolarDiagram * clone() const; | ||
66 | 66 | | |||
67 | /** \deprecated Use PolarCoordinatePlane::setStartPosition( qreal degrees ) instead. */ | 67 | /** \deprecated Use PolarCoordinatePlane::setStartPosition( qreal degrees ) instead. */ | ||
68 | void setZeroDegreePosition( int degrees ); | 68 | void setZeroDegreePosition( int degrees ); | ||
69 | /** \deprecated Use qreal PolarCoordinatePlane::startPosition instead. */ | 69 | /** \deprecated Use qreal PolarCoordinatePlane::startPosition instead. */ | ||
70 | int zeroDegreePosition() const; | 70 | int zeroDegreePosition() const; | ||
71 | 71 | | |||
Show All 16 Lines | |||||
88 | bool showLabelsAtPosition( Position position ) const; | 88 | bool showLabelsAtPosition( Position position ) const; | ||
89 | 89 | | |||
90 | virtual void paint ( PaintContext* paintContext, | 90 | virtual void paint ( PaintContext* paintContext, | ||
91 | bool calculateListAndReturnScale, | 91 | bool calculateListAndReturnScale, | ||
92 | qreal& newZoomX, qreal& newZoomY ); // KChart 3: references -> pointers | 92 | qreal& newZoomX, qreal& newZoomY ); // KChart 3: references -> pointers | ||
93 | 93 | | |||
94 | protected: | 94 | protected: | ||
95 | /** \reimpl */ | 95 | /** \reimpl */ | ||
96 | const QPair<QPointF, QPointF> calculateDataBoundaries() const Q_DECL_OVERRIDE; | 96 | const QPair<QPointF, QPointF> calculateDataBoundaries() const override; | ||
97 | void paintEvent ( QPaintEvent* ) Q_DECL_OVERRIDE; | 97 | void paintEvent ( QPaintEvent* ) override; | ||
98 | void resizeEvent ( QResizeEvent* ) Q_DECL_OVERRIDE; | 98 | void resizeEvent ( QResizeEvent* ) override; | ||
99 | virtual void paintPolarMarkers( PaintContext* ctx, const QPolygonF& polygon ); | 99 | virtual void paintPolarMarkers( PaintContext* ctx, const QPolygonF& polygon ); | ||
100 | 100 | | |||
101 | }; // End of class PolarDiagram | 101 | }; // End of class PolarDiagram | ||
102 | 102 | | |||
103 | } | 103 | } | ||
104 | 104 | | |||
105 | 105 | | |||
106 | #endif // KCHARTPOLARDIAGRAM_H | 106 | #endif // KCHARTPOLARDIAGRAM_H |