aboutsummaryrefslogtreecommitdiff
path: root/src/qt/utilitydialog.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-06-11 21:44:47 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-06-12 16:11:56 +0200
commit5c97aae6da813ce4873651b31f75b26ea6f1352f (patch)
tree49a097ba2ee9219b1b1ae5b0bfb8f48897a4dbfe /src/qt/utilitydialog.h
parent45615af26fe374fa996c116984a05f0a632a0e79 (diff)
qt: Unify AboutDialog and HelpMessageDialog
They share so much code and functionality that they may as well be one class.
Diffstat (limited to 'src/qt/utilitydialog.h')
-rw-r--r--src/qt/utilitydialog.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/qt/utilitydialog.h b/src/qt/utilitydialog.h
index cc23420169..154bb70b8b 100644
--- a/src/qt/utilitydialog.h
+++ b/src/qt/utilitydialog.h
@@ -12,35 +12,16 @@ class BitcoinGUI;
class ClientModel;
namespace Ui {
- class AboutDialog;
class HelpMessageDialog;
}
-/** "About" dialog box */
-class AboutDialog : public QDialog
-{
- Q_OBJECT
-
-public:
- explicit AboutDialog(QWidget *parent);
- ~AboutDialog();
-
- void setModel(ClientModel *model);
-
-private:
- Ui::AboutDialog *ui;
-
-private slots:
- void on_buttonBox_accepted();
-};
-
/** "Help message" dialog box */
class HelpMessageDialog : public QDialog
{
Q_OBJECT
public:
- explicit HelpMessageDialog(QWidget *parent, bool versionOnly);
+ explicit HelpMessageDialog(QWidget *parent, bool about);
~HelpMessageDialog();
void printToConsole();
@@ -48,6 +29,7 @@ public:
private:
Ui::HelpMessageDialog *ui;
+ QString text;
private slots:
void on_okButton_accepted();