aboutsummaryrefslogtreecommitdiff
path: root/src/aoemotebutton.h
diff options
context:
space:
mode:
authorTrickyLeifa <date.epoch@gmail.com>2024-05-16 03:09:21 +0200
committerTrickyLeifa <date.epoch@gmail.com>2024-05-16 03:09:21 +0200
commit39e4354b1dae5d8487ea5b84be9f304b1950a61a (patch)
tree734c99d3ef1a8e69007dd870a8b6763deca5ffce /src/aoemotebutton.h
parenta0cee58c048772b2dcfe3992f60728d5a6f7d786 (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/aoemotebutton.h')
-rw-r--r--src/aoemotebutton.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/aoemotebutton.h b/src/aoemotebutton.h
index 93149492..3c316314 100644
--- a/src/aoemotebutton.h
+++ b/src/aoemotebutton.h
@@ -1,9 +1,8 @@
#pragma once
#include "aoapplication.h"
-#include <QDebug>
+
#include <QLabel>
-#include <QPainter>
#include <QPushButton>
class AOEmoteButton : public QPushButton
@@ -11,18 +10,16 @@ class AOEmoteButton : public QPushButton
Q_OBJECT
public:
- AOEmoteButton(AOApplication *p_ao_app, int p_x, int p_y, int p_w, int p_h, QWidget *p_parent);
+ AOEmoteButton(int id, int width, int height, AOApplication *ao_app, QWidget *parent = nullptr);
- void set_image(QString p_image, QString p_emote_comment);
- void set_char_image(QString p_char, int p_emote, bool on);
+ int id();
- void set_selected_image(QString p_image);
+ void setImage(QString character, int emoteId, bool enabled);
- void set_id(int p_id);
- int get_id();
+ void setSelectedImage(QString p_image);
Q_SIGNALS:
- void emote_clicked(int p_id);
+ void emoteClicked(int p_id);
private:
AOApplication *ao_app;
@@ -30,7 +27,4 @@ private:
int m_id = 0;
QLabel *ui_selected = nullptr;
-
-private Q_SLOTS:
- void on_clicked();
};