aboutsummaryrefslogtreecommitdiff
path: root/src/aoevidencebutton.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/aoevidencebutton.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/aoevidencebutton.h')
-rw-r--r--src/aoevidencebutton.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/aoevidencebutton.h b/src/aoevidencebutton.h
index adaaa17a..9830384f 100644
--- a/src/aoevidencebutton.h
+++ b/src/aoevidencebutton.h
@@ -13,18 +13,19 @@ class AOEvidenceButton : public QPushButton
Q_OBJECT
public:
- AOEvidenceButton(AOApplication *p_ao_app, int p_x, int p_y, int p_w, int p_h, QWidget *p_parent = nullptr);
+ AOEvidenceButton(int id, int width, int height, AOApplication *ao_app, QWidget *parent = nullptr);
- void set_image(QString p_image);
- void set_theme_image(QString p_image);
- void set_id(int p_id) { m_id = p_id; }
+ void setImage(QString fileName);
- void set_selected(bool p_selected);
+ void setThemeImage(QString fileName);
+
+ void setSelected(bool enabled);
Q_SIGNALS:
- void evidence_clicked(int p_id);
- void evidence_double_clicked(int p_id);
- void on_hover(int p_id, bool p_state);
+ void evidenceClicked(int id);
+ void evidenceDoubleClicked(int id);
+
+ void mouseoverUpdated(int id, bool state);
protected:
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
@@ -33,6 +34,7 @@ protected:
void enterEvent(QEnterEvent *e) override;
#endif
void leaveEvent(QEvent *e) override;
+
void mouseDoubleClickEvent(QMouseEvent *e) override;
private: