summaryrefslogtreecommitdiffstats
path: root/qt-ui/about.h
diff options
context:
space:
mode:
authorGravatar Boris Barbulovski <bbarbulovski@gmail.com>2014-02-08 08:50:39 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-08 08:00:27 -0800
commit31611141067d1876a3b1ee2d8bafd64839c476d3 (patch)
tree51dfb36d2518cc774c5010ef1bbdee05e17c5786 /qt-ui/about.h
parent39a11d70923940f45b5e1493dabfa934ec2a79c6 (diff)
downloadsubsurface-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.h9
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;
};