diff options
Diffstat (limited to 'include/ui/FlatButton.h')
-rw-r--r-- | include/ui/FlatButton.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/ui/FlatButton.h b/include/ui/FlatButton.h index 8053f430..6e2eb149 100644 --- a/include/ui/FlatButton.h +++ b/include/ui/FlatButton.h @@ -86,9 +86,9 @@ class FlatButton : public QPushButton Q_PROPERTY(qreal fontSize WRITE setFontSize READ fontSize) public: - explicit FlatButton(QWidget *parent = 0, ui::ButtonPreset preset = ui::FlatPreset); - explicit FlatButton(const QString &text, QWidget *parent = 0, ui::ButtonPreset preset = ui::FlatPreset); - FlatButton(const QString &text, ui::Role role, QWidget *parent = 0, ui::ButtonPreset preset = ui::FlatPreset); + explicit FlatButton(QWidget *parent = 0, ui::ButtonPreset preset = ui::ButtonPreset::FlatPreset); + explicit FlatButton(const QString &text, QWidget *parent = 0, ui::ButtonPreset preset = ui::ButtonPreset::FlatPreset); + FlatButton(const QString &text, ui::Role role, QWidget *parent = 0, ui::ButtonPreset preset = ui::ButtonPreset::FlatPreset); ~FlatButton(); void applyPreset(ui::ButtonPreset preset); @@ -132,9 +132,7 @@ public: QSize sizeHint() const override; protected: - enum { - IconPadding = 0 - }; + int IconPadding = 0; void checkStateSet() override; void mousePressEvent(QMouseEvent *event) override; |