mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Simple "hack" with a QTimer to time the video
This commit is contained in:
@@ -42,6 +42,11 @@ MainWindow::MainWindow()
|
||||
_hasCurrentPaint = false;
|
||||
_hasCurrentMapping = false;
|
||||
|
||||
videoTimer = new QTimer(this);
|
||||
videoTimer->setInterval(1000/30);
|
||||
connect(videoTimer, SIGNAL(timeout()), this, SLOT(updateAll()));
|
||||
videoTimer->start();
|
||||
|
||||
createLayout();
|
||||
|
||||
createActions();
|
||||
|
||||
+2
-1
@@ -234,6 +234,8 @@ private:
|
||||
bool _hasCurrentMapping;
|
||||
bool _hasCurrentPaint;
|
||||
|
||||
QTimer *videoTimer;
|
||||
|
||||
static MainWindow* instance;
|
||||
|
||||
public:
|
||||
@@ -265,7 +267,6 @@ public:
|
||||
public slots:
|
||||
void updateAll();
|
||||
|
||||
|
||||
public:
|
||||
// Constants.
|
||||
static const int DEFAULT_WIDTH = 1600;
|
||||
|
||||
Reference in New Issue
Block a user