Changeset View
Changeset View
Standalone View
Standalone View
src/KChart/Cartesian/KChartCartesianCoordinatePlane_p.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | |||||
46 | */ | 46 | */ | ||
47 | class Q_DECL_HIDDEN CartesianCoordinatePlane::Private : public AbstractCoordinatePlane::Private | 47 | class Q_DECL_HIDDEN CartesianCoordinatePlane::Private : public AbstractCoordinatePlane::Private | ||
48 | { | 48 | { | ||
49 | friend class CartesianCoordinatePlane; | 49 | friend class CartesianCoordinatePlane; | ||
50 | public: | 50 | public: | ||
51 | explicit Private(); | 51 | explicit Private(); | ||
52 | virtual ~Private() { } | 52 | virtual ~Private() { } | ||
53 | 53 | | |||
54 | void initialize() Q_DECL_OVERRIDE | 54 | void initialize() override | ||
55 | { | 55 | { | ||
56 | bPaintIsRunning = false; | 56 | bPaintIsRunning = false; | ||
57 | coordinateTransformation.axesCalcModeX = Linear; | 57 | coordinateTransformation.axesCalcModeX = Linear; | ||
58 | coordinateTransformation.axesCalcModeY = Linear; | 58 | coordinateTransformation.axesCalcModeY = Linear; | ||
59 | grid = new CartesianGrid(); | 59 | grid = new CartesianGrid(); | ||
60 | } | 60 | } | ||
61 | 61 | | |||
62 | static Private *get( CartesianCoordinatePlane *plane ) | 62 | static Private *get( CartesianCoordinatePlane *plane ) | ||
63 | { | 63 | { | ||
64 | return static_cast< Private * >( plane->d_func() ); | 64 | return static_cast< Private * >( plane->d_func() ); | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | bool isVisiblePoint( const AbstractCoordinatePlane * plane, const QPointF& point ) const Q_DECL_OVERRIDE | 67 | bool isVisiblePoint( const AbstractCoordinatePlane * plane, const QPointF& point ) const override | ||
68 | { | 68 | { | ||
69 | QPointF p = point; | 69 | QPointF p = point; | ||
70 | const CartesianCoordinatePlane* const ref = | 70 | const CartesianCoordinatePlane* const ref = | ||
71 | qobject_cast< const CartesianCoordinatePlane* >( | 71 | qobject_cast< const CartesianCoordinatePlane* >( | ||
72 | const_cast< AbstractCoordinatePlane* >( plane )->sharedAxisMasterPlane() ); | 72 | const_cast< AbstractCoordinatePlane* >( plane )->sharedAxisMasterPlane() ); | ||
73 | const CartesianCoordinatePlane* const cartPlane = | 73 | const CartesianCoordinatePlane* const cartPlane = | ||
74 | dynamic_cast< const CartesianCoordinatePlane* >( plane ); | 74 | dynamic_cast< const CartesianCoordinatePlane* >( plane ); | ||
75 | if ( ref != nullptr && ref != cartPlane ) { | 75 | if ( ref != nullptr && ref != cartPlane ) { | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |