aboutsummaryrefslogtreecommitdiff
path: root/include/aomovie.h
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2020-05-02 21:29:06 -0500
committeroldmud0 <oldmud0@users.noreply.github.com>2020-05-02 21:29:06 -0500
commitbbdad2a40d8f02fe738830d9cf66ad4ec2fa86cf (patch)
tree8e8892d24684f005b0e18624677957791e1738b7 /include/aomovie.h
parent1e2d71fb96ca85fa50c172c2f1cf22b2620bacd2 (diff)
parent992c0b14e155059a7e22ad72c0309b620c850a46 (diff)
Merge branch '2.7-rc'
Includes full code reformat. # Conflicts: # src/aomusicplayer.cpp # src/path_functions.cpp
Diffstat (limited to 'include/aomovie.h')
-rw-r--r--include/aomovie.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/aomovie.h b/include/aomovie.h
index 1f278bf..caa1baa 100644
--- a/include/aomovie.h
+++ b/include/aomovie.h
@@ -7,21 +7,23 @@
class Courtroom;
class AOApplication;
-class AOMovie : public QLabel
-{
+class AOMovie : public QLabel {
Q_OBJECT
public:
AOMovie(QWidget *p_parent, AOApplication *p_ao_app);
void set_play_once(bool p_play_once);
- void play(QString p_gif, QString p_char = "", QString p_custom_theme = "");
+ void start_timer(int delay);
+ void play(QString p_gif, QString p_char = "", QString p_custom_theme = "",
+ int default_duration = 0);
void combo_resize(int w, int h);
void stop();
private:
QMovie *m_movie;
AOApplication *ao_app;
+ QTimer *timer;
bool play_once = true;
signals:
@@ -29,6 +31,7 @@ signals:
private slots:
void frame_change(int n_frame);
+ void timer_done();
};
#endif // AOMOVIE_H