Changeset View
Changeset View
Standalone View
Standalone View
src/KChart/Cartesian/KChartBarDiagram.h
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | 89 | #if defined(Q_COMPILER_MANGLES_RETURN_TYPE) | |||
---|---|---|---|---|---|
90 | // implement AbstractCartesianDiagram | 90 | // implement AbstractCartesianDiagram | ||
91 | /** \reimpl */ | 91 | /** \reimpl */ | ||
92 | const int numberOfAbscissaSegments () const; | 92 | const int numberOfAbscissaSegments () const; | ||
93 | /** \reimpl */ | 93 | /** \reimpl */ | ||
94 | const int numberOfOrdinateSegments () const; | 94 | const int numberOfOrdinateSegments () const; | ||
95 | #else | 95 | #else | ||
96 | // implement AbstractCartesianDiagram | 96 | // implement AbstractCartesianDiagram | ||
97 | /** \reimpl */ | 97 | /** \reimpl */ | ||
98 | int numberOfAbscissaSegments () const Q_DECL_OVERRIDE; | 98 | int numberOfAbscissaSegments () const override; | ||
99 | /** \reimpl */ | 99 | /** \reimpl */ | ||
100 | int numberOfOrdinateSegments () const Q_DECL_OVERRIDE; | 100 | int numberOfOrdinateSegments () const override; | ||
101 | #endif | 101 | #endif | ||
102 | 102 | | |||
103 | protected: | 103 | protected: | ||
104 | void paint ( PaintContext* paintContext ) Q_DECL_OVERRIDE; | 104 | void paint ( PaintContext* paintContext ) override; | ||
105 | 105 | | |||
106 | public: | 106 | public: | ||
107 | void resize ( const QSizeF& area ) Q_DECL_OVERRIDE; | 107 | void resize ( const QSizeF& area ) override; | ||
108 | 108 | | |||
109 | protected: | 109 | protected: | ||
110 | qreal threeDItemDepth( const QModelIndex & index ) const Q_DECL_OVERRIDE; | 110 | qreal threeDItemDepth( const QModelIndex & index ) const override; | ||
111 | qreal threeDItemDepth( int column ) const Q_DECL_OVERRIDE; | 111 | qreal threeDItemDepth( int column ) const override; | ||
112 | /** \reimpl */ | 112 | /** \reimpl */ | ||
113 | const QPair<QPointF, QPointF> calculateDataBoundaries() const Q_DECL_OVERRIDE; | 113 | const QPair<QPointF, QPointF> calculateDataBoundaries() const override; | ||
114 | void paintEvent ( QPaintEvent* ) Q_DECL_OVERRIDE; | 114 | void paintEvent ( QPaintEvent* ) override; | ||
115 | void resizeEvent ( QResizeEvent* ) Q_DECL_OVERRIDE; | 115 | void resizeEvent ( QResizeEvent* ) override; | ||
116 | private: | 116 | private: | ||
117 | 117 | | |||
118 | void calculateValueAndGapWidths( int rowCount, int colCount, | 118 | void calculateValueAndGapWidths( int rowCount, int colCount, | ||
119 | qreal groupWidth, | 119 | qreal groupWidth, | ||
120 | qreal& barWidth, | 120 | qreal& barWidth, | ||
121 | qreal& spaceBetweenBars, | 121 | qreal& spaceBetweenBars, | ||
122 | qreal& spaceBetweenGroups ); | 122 | qreal& spaceBetweenGroups ); | ||
123 | }; // End of class BarDiagram | 123 | }; // End of class BarDiagram | ||
124 | 124 | | |||
125 | } | 125 | } | ||
126 | 126 | | |||
127 | #endif // KCHARTBARDIAGRAM_H | 127 | #endif // KCHARTBARDIAGRAM_H |