aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-09-14 20:20:38 +0300
committerCrystalwarrior <varsash@gmail.com>2019-09-14 20:20:38 +0300
commit14ced5ce156eec4974b424fc59e47da948aa080d (patch)
treebbc1786c459c22a88c0f89164969757e9349b154 /include
parent51c97ad51ce564ab400f5333eaad75b1fb2e5461 (diff)
2.7.2 way of animating charmovie.cpp ported over
Diffstat (limited to 'include')
-rw-r--r--include/aocharmovie.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/aocharmovie.h b/include/aocharmovie.h
index f54f5105..bc0e30a5 100644
--- a/include/aocharmovie.h
+++ b/include/aocharmovie.h
@@ -29,12 +29,15 @@ public:
void combo_resize(int w, int h);
+ void set_frame(QImage image);
+
private:
AOApplication *ao_app;
QMovie *m_movie;
QVector<QImage> movie_frames;
QTimer *preanim_timer;
+ QTimer *ticker;
const int time_mod = 60;
@@ -46,11 +49,13 @@ private:
bool play_once = true;
+ bool preprocess = false;
+
signals:
void done();
private slots:
- void frame_change(int n_frame);
+ void movie_ticker();
void timer_done();
};