diff options
author | Boris Barbulovski <bbarbulovski@gmail.com> | 2014-02-08 08:50:39 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-08 08:00:27 -0800 |
commit | 31611141067d1876a3b1ee2d8bafd64839c476d3 (patch) | |
tree | 51dfb36d2518cc774c5010ef1bbdee05e17c5786 /qt-ui/about.h | |
parent | 39a11d70923940f45b5e1493dabfa934ec2a79c6 (diff) | |
download | subsurface-31611141067d1876a3b1ee2d8bafd64839c476d3.tar.gz |
SubsurfaceAbout class cleanup.
Main change is that now SubsurfaceAbout doesn't have instance object, but
it constructs and destructs dynamically.
* Remove the static SubsurfaceAbout::instance() class member
* construct/destruct about dialog on demand
* Other small aboutbox cleanups.
Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com>
ACK-ed-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/about.h')
-rw-r--r-- | qt-ui/about.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/qt-ui/about.h b/qt-ui/about.h index 06dc30c87..0a4c8ddb5 100644 --- a/qt-ui/about.h +++ b/qt-ui/about.h @@ -9,14 +9,11 @@ class SubsurfaceAbout : public QDialog { Q_OBJECT public: - static SubsurfaceAbout* instance(); + explicit SubsurfaceAbout(QWidget* parent = 0, Qt::WindowFlags f = 0); private slots: - void licenseClicked(); - void websiteClicked(); + void on_licenseButton_clicked(); + void on_websiteButton_clicked(); private: - explicit SubsurfaceAbout(QWidget* parent = 0, Qt::WindowFlags f = 0); - QPushButton *licenseButton; - QPushButton *websiteButton; Ui::SubsurfaceAbout ui; }; |