diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2011-10-03 14:35:05 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:25:22 +0300 |
commit | 24193578f04f54df1cff6ef5caf45e0895081df3 (patch) | |
tree | dcd824c6df12f69590ac69c55eee7019227ab617 /qt/draw_widget.hpp | |
parent | fd3a3a6d0fc3aeab9e7b0c4724d614dc587cb0ee (diff) |
added screen rotation support.
Diffstat (limited to 'qt/draw_widget.hpp')
-rw-r--r-- | qt/draw_widget.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt/draw_widget.hpp b/qt/draw_widget.hpp index 254a7235f9..5e95e9ef93 100644 --- a/qt/draw_widget.hpp +++ b/qt/draw_widget.hpp @@ -43,6 +43,7 @@ namespace qt auto_ptr<VideoTimer> m_videoTimer; bool m_isDrag; + bool m_isRotate; QTimer * m_timer; QTimer * m_animTimer; @@ -109,11 +110,14 @@ namespace qt virtual void mouseMoveEvent(QMouseEvent * e); virtual void mouseReleaseEvent(QMouseEvent * e); virtual void wheelEvent(QWheelEvent * e); + virtual void keyReleaseEvent(QKeyEvent * e); //@} private: void UpdateScaleControl(); void StopDragging(QMouseEvent * e); + void StopRotating(QMouseEvent * e); + void StopRotating(QKeyEvent * e); QScaleSlider * m_pScale; }; |