首次提交
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ifndef AbstractTextButton_H
|
||||
#define AbstractTextButton_H
|
||||
#include "../Global.h"
|
||||
class AbstractTextButton : public QWidget {
|
||||
public:
|
||||
explicit AbstractTextButton(QWidget *parent = nullptr);
|
||||
QFont mFont;
|
||||
QColor mBackgroundColor;
|
||||
QColor mEnterColor;
|
||||
QPen mPen;
|
||||
bool mEnter = false;
|
||||
std::function<void(void)> mClick = nullptr;
|
||||
protected:
|
||||
void paintEvent(QPaintEvent *event) override;
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user