diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-20 09:59:14 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-09-20 09:59:14 +0300 |
commit | ecc346a6dad163986cdb7a1a5a6aa873e20519da (patch) | |
tree | 75663330208063522165d8e14941cc2aabdca2c0 /src/dialogs/ReCaptcha.h | |
parent | Use confirm as the default button (diff) | |
download | nheko-ecc346a6dad163986cdb7a1a5a6aa873e20519da.tar.xz |
Close dialogs on confirmation
Diffstat (limited to 'src/dialogs/ReCaptcha.h')
-rw-r--r-- | src/dialogs/ReCaptcha.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/dialogs/ReCaptcha.h b/src/dialogs/ReCaptcha.h index 5f47b0eb..f8407640 100644 --- a/src/dialogs/ReCaptcha.h +++ b/src/dialogs/ReCaptcha.h @@ -2,8 +2,7 @@ #include <QWidget> -class FlatButton; -class RaisedButton; +class QPushButton; namespace dialogs { @@ -14,15 +13,12 @@ class ReCaptcha : public QWidget public: ReCaptcha(const QString &session, QWidget *parent = nullptr); -protected: - void paintEvent(QPaintEvent *event) override; - signals: - void closing(); + void confirmation(); private: - FlatButton *openCaptchaBtn_; - RaisedButton *confirmBtn_; - RaisedButton *cancelBtn_; + QPushButton *openCaptchaBtn_; + QPushButton *confirmBtn_; + QPushButton *cancelBtn_; }; } // dialogs |