diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-03-22 11:10:01 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-03-22 13:13:33 +0100 |
commit | 5e68c2afb847ae496bc11c60f8d75479a1f864b5 (patch) | |
tree | 065143c23d61f353b7c2c15a0a106a59b215ec7e /src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.h | |
parent | 66e020111746593e06b3860d63bc8e9fec66e730 (diff) | |
download | qt-creator-5e68c2afb847ae496bc11c60f8d75479a1f864b5.tar.gz |
Don't create Welcome mode pages when there is no Welcome mode
Fixes creating these pages unnecessarily when the Welcome plugin is not
loaded, as well as "leaking" them in that case.
Reviewed-by: con
Diffstat (limited to 'src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.h')
-rw-r--r-- | src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.h b/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.h index f5145f7f02..21cceb1cc8 100644 --- a/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.h +++ b/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.h @@ -39,18 +39,21 @@ namespace Ui { class GettingStartedWelcomePageWidget; } -class GettingStartedWelcomePageWidget : public QWidget { +class GettingStartedWelcomePageWidget : public QWidget +{ Q_OBJECT public: GettingStartedWelcomePageWidget(QWidget *parent = 0); ~GettingStartedWelcomePageWidget(); - public slots: - void updateExamples(const QString& examplePath, const QString& demosPath, const QString &sourcePath); +public slots: + void updateExamples(const QString &examplePath, + const QString &demosPath, + const QString &sourcePath); private slots: - void slotOpenHelpPage(const QString& url); - void slotOpenContextHelpPage(const QString& url); + void slotOpenHelpPage(const QString &url); + void slotOpenContextHelpPage(const QString &url); void slotEnableExampleButton(int); void slotOpenExample(); void slotNextTip(); @@ -63,7 +66,7 @@ private: int m_currentTip; }; - } // namespace Internal } // namespace Qt4ProjectManager + #endif // GETTINGSTARTEDWELCOMEPAGEWIDGET_H |