
* Major cleanup of screenshake code * Add pre-5.10 support for screenshake math * more compat, uglier too * add surprise tool * we don't need inline functions * only run qsrand on old versions * Squash compiler warnings * >= not > please * don't set codec in qt6 * switch to new regex * remove qdesktopwidget (was unused) * make enter event an enter event * forgot header file * rename emote_mod enum as there is an enum of the same name in chat_message * regexp * no more codec * fix warning about emote_mod type * change to new qtconcurrent * misc was unused * fix run * change qtconcurrent for music * codecs came back * make CI run on qt6 too * seperate artifacts * qFormatLogMessage is wonky here * maybe actually use the qt version from matrix * change qt version here as well * even lower * use my own fixed installer * use my own fixed version of qapng * get websockets * minor spelling mistake * yOu nEeD aDdOnS * aaaaaaaaaaaaaaaaaaaaaaaaaaaaa * Revert "maybe actually use the qt version from matrix" This reverts commit 7ab6b1b4c2f1200318d52f325efd2ef46c3fbd6a. * Revert "Revert "maybe actually use the qt version from matrix"" This reverts commit a6f7c5bedf214a1992c15b296edd195f96a9196a. * use jurplels again * Revert "use jurplels again" This reverts commit 5795474bca64590f1479af3ccbf7d8cc57f427e7. * revert CI to master * main not master Co-authored-by: in1tiate <woodward.randall02+github@gmail.com>
46 lines
782 B
C++
46 lines
782 B
C++
#ifndef AOCHARBUTTON_H
|
|
#define AOCHARBUTTON_H
|
|
|
|
#include "aoapplication.h"
|
|
#include "aoimage.h"
|
|
|
|
#include <QFile>
|
|
#include <QPushButton>
|
|
#include <QEnterEvent>
|
|
#include <QString>
|
|
#include <QWidget>
|
|
|
|
class AOCharButton : public QPushButton {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AOCharButton(QWidget *parent, AOApplication *p_ao_app, int x_pos, int y_pos,
|
|
bool is_taken);
|
|
|
|
AOApplication *ao_app;
|
|
|
|
void refresh();
|
|
void reset();
|
|
void set_taken(bool is_taken);
|
|
void set_passworded();
|
|
|
|
void apply_taken_image();
|
|
|
|
void set_image(QString p_character);
|
|
|
|
private:
|
|
bool taken;
|
|
|
|
QWidget *m_parent;
|
|
|
|
AOImage *ui_taken;
|
|
AOImage *ui_passworded;
|
|
AOImage *ui_selector;
|
|
|
|
protected:
|
|
void enterEvent(QEnterEvent *e);
|
|
void leaveEvent(QEvent *e);
|
|
};
|
|
|
|
#endif // AOCHARBUTTON_H
|