diff options
Diffstat (limited to 'src/aoimage.h')
| -rw-r--r-- | src/aoimage.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/aoimage.h b/src/aoimage.h new file mode 100644 index 00000000..5ab92e7b --- /dev/null +++ b/src/aoimage.h @@ -0,0 +1,27 @@ +// This class represents a static theme-dependent image + +#pragma once + +#include "aoapplication.h" + +#include <QDebug> +#include <QLabel> +#include <QMovie> + +class AOImage : public QLabel +{ + Q_OBJECT + +public: + AOImage(AOApplication *p_ao_app, QWidget *parent = nullptr); + AOImage(AOApplication *p_ao_app, bool make_static, QWidget *parent = nullptr); + ~AOImage(); + + QString file_name(); + bool set_image(QString p_image, QString p_misc = QString()); + +private: + AOApplication *ao_app; + + QString m_file_name; +}; |
