aboutsummaryrefslogtreecommitdiff
path: root/include/aomovie.h
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2020-05-22 01:18:24 +0300
committerCrystalwarrior <varsash@gmail.com>2020-05-22 01:18:24 +0300
commitc8e12558cdd3fd0769b81679ad09edf1f29b780f (patch)
tree7dae2225e574c3ee55d6b82a1d2f399db4ace5c0 /include/aomovie.h
parentdfac0652c8eb9bd48ceea7ae755e9c2f7e5cb1a2 (diff)
Clang-ify the code with this styling using Visual Studio Code:
{ BasedOnStyle: LLVM, UseTab: Never, IndentWidth: 4, TabWidth: 4, BreakBeforeBraces: Stroustrup, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All } (this is the Visual Studio preset with only "BreakBeforeBraces" changed from Allman to Stroustrup)
Diffstat (limited to 'include/aomovie.h')
-rw-r--r--include/aomovie.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/include/aomovie.h b/include/aomovie.h
index ec286199..8d604423 100644
--- a/include/aomovie.h
+++ b/include/aomovie.h
@@ -7,30 +7,29 @@
class Courtroom;
class AOApplication;
-class AOMovie : public QLabel
-{
- Q_OBJECT
+class AOMovie : public QLabel {
+ Q_OBJECT
public:
- AOMovie(QWidget *p_parent, AOApplication *p_ao_app);
+ AOMovie(QWidget *p_parent, AOApplication *p_ao_app);
- void set_play_once(bool p_play_once);
- void play(QString p_image, QString p_char = "", QString p_custom_theme = "", int default_duration = 0);
- void combo_resize(int w, int h);
- void stop();
+ void set_play_once(bool p_play_once);
+ void play(QString p_image, 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;
+ QMovie *m_movie;
+ AOApplication *ao_app;
+ QTimer *timer;
+ bool play_once = true;
signals:
- void done();
+ void done();
private slots:
- void frame_change(int n_frame);
- void timer_done();
+ void frame_change(int n_frame);
+ void timer_done();
};
#endif // AOMOVIE_H