Changeset View
Changeset View
Standalone View
Standalone View
examples/Zoom/Keyboard/zoomwidget.h
Show All 25 Lines | |||||
26 | { | 26 | { | ||
27 | Q_OBJECT | 27 | Q_OBJECT | ||
28 | 28 | | |||
29 | public: | 29 | public: | ||
30 | explicit ZoomWidget( QWidget* parent ); | 30 | explicit ZoomWidget( QWidget* parent ); | ||
31 | 31 | | |||
32 | protected: | 32 | protected: | ||
33 | QPointF findNewZoomCenter( const QPoint & pos ); | 33 | QPointF findNewZoomCenter( const QPoint & pos ); | ||
34 | void mousePressEvent( QMouseEvent * e ) Q_DECL_OVERRIDE; | 34 | void mousePressEvent( QMouseEvent * e ) override; | ||
35 | void wheelEvent( QWheelEvent* e ) Q_DECL_OVERRIDE; | 35 | void wheelEvent( QWheelEvent* e ) override; | ||
36 | void keyPressEvent( QKeyEvent* e ) Q_DECL_OVERRIDE; | 36 | void keyPressEvent( QKeyEvent* e ) override; | ||
37 | }; | 37 | }; | ||
38 | 38 | | |||
39 | 39 | | |||
40 | #endif /* ZOOMWIDGET_H */ | 40 | #endif /* ZOOMWIDGET_H */ | ||
41 | 41 | |