Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qt/draw_widget.hpp')
-rw-r--r--qt/draw_widget.hpp22
1 files changed, 21 insertions, 1 deletions
diff --git a/qt/draw_widget.hpp b/qt/draw_widget.hpp
index 1225433a18..b77c3d792a 100644
--- a/qt/draw_widget.hpp
+++ b/qt/draw_widget.hpp
@@ -26,6 +26,26 @@ namespace qt
/// Replace this to set a draw widget kernel.
typedef GLDrawWidget widget_type;
+ class DrawWidget;
+
+ class QtVideoTimer : public ::VideoTimer
+ {
+ private:
+
+ QTimer * m_timer;
+ DrawWidget * m_widget;
+
+ public:
+
+ QtVideoTimer(DrawWidget * w, ::VideoTimer::TFrameFn frameFn);
+
+ void resume();
+ void pause();
+
+ void start();
+ void stop();
+ };
+
class DrawWidget : public widget_type
{
typedef widget_type base_type;
@@ -40,7 +60,7 @@ namespace qt
scoped_ptr<Framework<model_t> > m_framework;
- scoped_ptr<VideoTimer> m_videoTimer;
+ shared_ptr<VideoTimer> m_videoTimer;
bool m_isDrag;
bool m_isRotate;