diff options
| author | TrickyLeifa <date.epoch@gmail.com> | 2024-05-16 03:09:21 +0200 |
|---|---|---|
| committer | TrickyLeifa <date.epoch@gmail.com> | 2024-05-16 03:09:21 +0200 |
| commit | 39e4354b1dae5d8487ea5b84be9f304b1950a61a (patch) | |
| tree | 734c99d3ef1a8e69007dd870a8b6763deca5ffce /src/aobutton.h | |
| parent | a0cee58c048772b2dcfe3992f60728d5a6f7d786 (diff) | |
Reimplemented favorite server widget, ...
* Reworked favorite server widget
* Renamed `server_type` to `ServerInfo`
* Renamed `connection_type` to `ServerConnectionType`
* Refactored `AOCharButton`
* Reimplemented `AOButton`
* Partially reimplemented `AOEmoteButton`
* Refactored `AOEvidenceButton`
Diffstat (limited to 'src/aobutton.h')
| -rw-r--r-- | src/aobutton.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/aobutton.h b/src/aobutton.h index 058d9e5c..8104bdbd 100644 --- a/src/aobutton.h +++ b/src/aobutton.h @@ -2,7 +2,6 @@ #include "aoapplication.h" -#include <QDebug> #include <QMovie> #include <QPushButton> @@ -11,12 +10,20 @@ class AOButton : public QPushButton Q_OBJECT public: - AOButton(AOApplication *p_ao_app, QWidget *parent = nullptr); - ~AOButton(); + explicit AOButton(AOApplication *ao_app, QWidget *parent = nullptr); + virtual ~AOButton(); - void set_image(QString p_image, QString p_misc = QString()); + void setImage(QString image_name); private: AOApplication *ao_app; - QMovie *m_movie; + + QMovie *m_movie = nullptr; + + void deleteMovie(); + +private Q_SLOTS: + void handleNextFrame(); + + void updateIcon(QPixmap icon); }; |
