PIVX Core  5.6.99
P2P Digital Currency
defaultdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2019-2020 The PIVX Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef PIVX_QT_DEFAULTDIALOG_H
6 #define PIVX_QT_DEFAULTDIALOG_H
7 
8 #include "focuseddialog.h"
9 
10 namespace Ui {
11 class DefaultDialog;
12 }
13 
15 {
16  Q_OBJECT
17 
18 public:
19  explicit DefaultDialog(QWidget *parent = nullptr);
21 
22  void setText(const QString& title = "", const QString& message = "", const QString& okBtnText = "", const QString& cancelBtnText = "");
23 
24  bool isOk = false;
25 
26 public Q_SLOTS:
27  void accept() override;
28 
29 private:
30  Ui::DefaultDialog *ui;
31 };
32 
33 #endif // PIVX_QT_DEFAULTDIALOG_H
DefaultDialog(QWidget *parent=nullptr)
void accept() override
Ui::DefaultDialog * ui
Definition: defaultdialog.h:30
void setText(const QString &title="", const QString &message="", const QString &okBtnText="", const QString &cancelBtnText="")