atrooney-online-2/include/aoemotebutton.h
Crystalwarrior cda7d430b3 use SetIcon for AOEmoteButton instead of stylesheets
Fix aolineedit not sending the double_clicked signal
Add tooltips for emotes that display the number and the emote_comment (name)
Add similar tooltips to evidence buttons
Resolve an issue where you could edit evidence name without double-clicking a piece of evidence first
2019-09-18 19:43:11 +03:00

36 lines
640 B
C++

#ifndef AOEMOTEBUTTON_H
#define AOEMOTEBUTTON_H
#include "aoapplication.h"
#include <QPushButton>
#include <QDebug>
class AOEmoteButton : public QPushButton
{
Q_OBJECT
public:
AOEmoteButton(QWidget *p_parent, AOApplication *p_ao_app, int p_x, int p_y);
void set_image(QString p_image, QString p_emote_comment);
void set_char_image(QString p_char, int p_emote, QString suffix);
void set_id(int p_id) {m_id = p_id;}
int get_id() {return m_id;}
private:
QWidget *parent;
AOApplication *ao_app;
int m_id = 0;
signals:
void emote_clicked(int p_id);
private slots:
void on_clicked();
};
#endif // AOEMOTEBUTTON_H