diff options
author | hjk <qthjk@ovi.com> | 2012-07-17 16:37:01 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-07-17 17:17:31 +0200 |
commit | b44e0e1a237c93d5a8d3e63896a1868cf4bc7356 (patch) | |
tree | ca5a2e24af910fe966e270832493199d7eb64df9 | |
parent | 441c652ce5442b5d04c5998424264973eeb732a2 (diff) | |
download | qt-creator-b44e0e1a237c93d5a8d3e63896a1868cf4bc7356.tar.gz |
use QT_BEGIN_NAMESPACE instead of QT_FORWARD_DECLARE_CLASS
Less confusing to the highlighter.
Change-Id: I1c5f232da42b18d43f6c14b5907eb8feb48de2b4
Reviewed-by: hjk <qthjk@ovi.com>
-rw-r--r-- | src/plugins/help/helpplugin.h | 12 | ||||
-rw-r--r-- | src/plugins/help/searchwidget.h | 10 | ||||
-rw-r--r-- | src/plugins/help/xbelsupport.h | 6 | ||||
-rw-r--r-- | src/plugins/projectexplorer/profileinformationconfigwidget.h | 6 | ||||
-rw-r--r-- | src/plugins/qtsupport/qtversionfactory.h | 10 |
5 files changed, 28 insertions, 16 deletions
diff --git a/src/plugins/help/helpplugin.h b/src/plugins/help/helpplugin.h index fbb5e07dc8..66c5f83b4a 100644 --- a/src/plugins/help/helpplugin.h +++ b/src/plugins/help/helpplugin.h @@ -37,11 +37,13 @@ #include <QMap> #include <QStringList> -QT_FORWARD_DECLARE_CLASS(QAction) -QT_FORWARD_DECLARE_CLASS(QComboBox) -QT_FORWARD_DECLARE_CLASS(QMenu) -QT_FORWARD_DECLARE_CLASS(QToolButton) -QT_FORWARD_DECLARE_CLASS(QUrl) +QT_BEGIN_NAMESPACE +class QAction; +class QComboBox; +class QMenu; +class QToolButton; +class QUrl; +QT_END_NAMESPACE namespace Core { class IMode; diff --git a/src/plugins/help/searchwidget.h b/src/plugins/help/searchwidget.h index 3c9057888e..43917a38e4 100644 --- a/src/plugins/help/searchwidget.h +++ b/src/plugins/help/searchwidget.h @@ -38,10 +38,12 @@ #include <QWidget> -QT_FORWARD_DECLARE_CLASS(QHelpSearchEngine) -QT_FORWARD_DECLARE_CLASS(QHelpSearchResultWidget) -QT_FORWARD_DECLARE_CLASS(QMouseEvent) -QT_FORWARD_DECLARE_CLASS(QUrl) +QT_BEGIN_NAMESPACE +class QHelpSearchEngine; +class QHelpSearchResultWidget; +class QMouseEvent; +class QUrl; +QT_END_NAMESPACE namespace Help { namespace Internal { diff --git a/src/plugins/help/xbelsupport.h b/src/plugins/help/xbelsupport.h index a06eb58a21..0d3b92565d 100644 --- a/src/plugins/help/xbelsupport.h +++ b/src/plugins/help/xbelsupport.h @@ -36,8 +36,10 @@ #include <QIcon> #include <QXmlStreamReader> -QT_FORWARD_DECLARE_CLASS(QIODevice) -QT_FORWARD_DECLARE_CLASS(QStandardItem) +QT_BEGIN_NAMESPACE +class QIODevice; +class QStandardItem; +QT_END_NAMESPACE class BookmarkModel; diff --git a/src/plugins/projectexplorer/profileinformationconfigwidget.h b/src/plugins/projectexplorer/profileinformationconfigwidget.h index 69ed6c1c91..19717f51ad 100644 --- a/src/plugins/projectexplorer/profileinformationconfigwidget.h +++ b/src/plugins/projectexplorer/profileinformationconfigwidget.h @@ -35,8 +35,10 @@ #include "profileconfigwidget.h" -QT_FORWARD_DECLARE_CLASS(QComboBox) -QT_FORWARD_DECLARE_CLASS(QPushButton) +QT_BEGIN_NAMESPACE +class QComboBox; +class QPushButton; +QT_END_NAMESPACE namespace Utils { class PathChooser; } diff --git a/src/plugins/qtsupport/qtversionfactory.h b/src/plugins/qtsupport/qtversionfactory.h index 2900ba6a12..48b1c84dd0 100644 --- a/src/plugins/qtsupport/qtversionfactory.h +++ b/src/plugins/qtsupport/qtversionfactory.h @@ -39,8 +39,10 @@ #include <QObject> #include <QVariantMap> -QT_FORWARD_DECLARE_CLASS(QSettings) -QT_FORWARD_DECLARE_CLASS(ProFileEvaluator) +QT_BEGIN_NAMESPACE +class QSettings; +class ProFileEvaluator; +QT_END_NAMESPACE namespace QtSupport { @@ -49,6 +51,7 @@ class BaseQtVersion; class QTSUPPORT_EXPORT QtVersionFactory : public QObject { Q_OBJECT + public: explicit QtVersionFactory(QObject *parent = 0); ~QtVersionFactory(); @@ -66,5 +69,6 @@ public: static BaseQtVersion *createQtVersionFromLegacySettings(const Utils::FileName &qmakePath, int id, QSettings *s); }; -} +} // namespace QtSupport + #endif // QTVERSIONFACTORY_H |