Changeset View
Changeset View
Standalone View
Standalone View
examples/Axis/Labels/AdjustedCartesianAxis.h
Show All 27 Lines | |||||
28 | { | 28 | { | ||
29 | Q_OBJECT | 29 | Q_OBJECT | ||
30 | 30 | | |||
31 | Q_DISABLE_COPY( AdjustedCartesianAxis ) | 31 | Q_DISABLE_COPY( AdjustedCartesianAxis ) | ||
32 | 32 | | |||
33 | public: | 33 | public: | ||
34 | explicit AdjustedCartesianAxis( KChart::AbstractCartesianDiagram* diagram = nullptr ); | 34 | explicit AdjustedCartesianAxis( KChart::AbstractCartesianDiagram* diagram = nullptr ); | ||
35 | 35 | | |||
36 | const QString customizedLabel( const QString& label ) const Q_DECL_OVERRIDE; | 36 | const QString customizedLabel( const QString& label ) const override; | ||
37 | 37 | | |||
38 | void setBounds( qreal lower, qreal upper ) { | 38 | void setBounds( qreal lower, qreal upper ) { | ||
39 | m_lowerBound = lower; | 39 | m_lowerBound = lower; | ||
40 | m_upperBound = upper; | 40 | m_upperBound = upper; | ||
41 | } | 41 | } | ||
42 | qreal lowerBound() const { return m_lowerBound; } | 42 | qreal lowerBound() const { return m_lowerBound; } | ||
43 | qreal upperBound() const { return m_upperBound; } | 43 | qreal upperBound() const { return m_upperBound; } | ||
44 | 44 | | |||
45 | private: | 45 | private: | ||
46 | qreal m_lowerBound; | 46 | qreal m_lowerBound; | ||
47 | qreal m_upperBound; | 47 | qreal m_upperBound; | ||
48 | }; | 48 | }; | ||
49 | 49 | | |||
50 | #endif // ADJUSTED_CARTESIAN_AXIS_H | 50 | #endif // ADJUSTED_CARTESIAN_AXIS_H |