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:
authorExMix <rahuba.youri@gmail.com>2013-03-26 15:00:24 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:52:24 +0300
commite6a0d7976d15bb11a9d48da3d4fcce6d5a7b2234 (patch)
treec08a107bec92f9adc8b41ed7583b41831220a633 /qt/draw_widget.hpp
parentb2001a9e56e11ad1dbfea6474adb80d8030fb022 (diff)
fix for desktop. We need call m_frameFn in timer for use pause/resume logic implemented in WindowsHandle
Diffstat (limited to 'qt/draw_widget.hpp')
-rw-r--r--qt/draw_widget.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/qt/draw_widget.hpp b/qt/draw_widget.hpp
index a9a7550144..c0c815cc9b 100644
--- a/qt/draw_widget.hpp
+++ b/qt/draw_widget.hpp
@@ -19,20 +19,23 @@ namespace qt
class DrawWidget;
- class QtVideoTimer : public ::VideoTimer
+ class QtVideoTimer : public QObject, public ::VideoTimer
{
+ Q_OBJECT
private:
QTimer * m_timer;
- DrawWidget * m_widget;
public:
- QtVideoTimer(DrawWidget * w, ::VideoTimer::TFrameFn frameFn);
+ QtVideoTimer(::VideoTimer::TFrameFn frameFn);
void resume();
void pause();
void start();
void stop();
+
+ protected:
+ Q_SLOT void TimerElapsed();
};
class DrawWidget : public QGLWidget
@@ -70,7 +73,6 @@ namespace qt
void Repaint();
void ScaleChanged(int action);
//void ScaleTimerElapsed();
- void AnimTimerElapsed();
void QueryMaxScaleMode();