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>
This commit is contained in:
Boris Barbulovski 2014-02-08 08:50:39 +01:00 committed by Dirk Hohndel
parent 39a11d7092
commit 3161114106
4 changed files with 73 additions and 64 deletions

View file

@ -9,14 +9,11 @@ class SubsurfaceAbout : public QDialog {
Q_OBJECT
public:
static SubsurfaceAbout* instance();
private slots:
void licenseClicked();
void websiteClicked();
private:
explicit SubsurfaceAbout(QWidget* parent = 0, Qt::WindowFlags f = 0);
QPushButton *licenseButton;
QPushButton *websiteButton;
private slots:
void on_licenseButton_clicked();
void on_websiteButton_clicked();
private:
Ui::SubsurfaceAbout ui;
};