5#include <Kanoop/gui/libkanoopgui.h>
19 Q_PROPERTY(QColor foregroundColor READ foregroundColor WRITE setForegroundColor)
21 Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
27 explicit
PushButton(const QString &text, QWidget *parent =
nullptr);
29 PushButton(const QIcon& icon, const QString &text, QWidget *parent =
nullptr);
32 void setFontPointSize(
int size);
34 void setFontPixelSize(
int size);
36 void setBold(
bool bold);
38 void setItalic(
bool italic);
41 QColor foregroundColor()
const {
return _foregroundColor; }
73 void makeStyleSheet();
75 QColor _foregroundColor;
76 QColor _backgroundColor;
77 QColor _hoverForegroundColor;
78 QColor _hoverBackgroundColor;
79 QColor _pressedForegroundColor;
80 QColor _pressedBackgroundColor;
81 QColor _disabledForegroundColor;
82 QColor _disabledBackgroundColor;
83 int _borderRadius = 0;