summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libs/cplusplus/BackwardsScanner.h3
-rw-r--r--src/libs/cplusplus/ExpressionUnderCursor.h2
-rw-r--r--src/libs/cplusplus/Icons.h2
-rw-r--r--src/libs/cplusplus/Macro.h6
-rw-r--r--src/libs/cplusplus/MatchingText.cpp3
-rw-r--r--src/libs/cplusplus/MatchingText.h4
-rw-r--r--src/libs/cplusplus/NamePrettyPrinter.h2
-rw-r--r--src/libs/cplusplus/Overview.h4
-rw-r--r--src/libs/cplusplus/OverviewModel.h3
-rw-r--r--src/libs/extensionsystem/pluginmanager.cpp1
-rw-r--r--src/libs/extensionsystem/pluginmanager_p.h3
-rw-r--r--src/libs/qmleditorwidgets/colorbox.h3
-rw-r--r--src/libs/qmleditorwidgets/colorbutton.h5
-rw-r--r--src/libs/qmleditorwidgets/colorwidgets.h15
-rw-r--r--src/libs/qmleditorwidgets/contextpanetextwidget.cpp4
-rw-r--r--src/libs/qmleditorwidgets/contextpanetextwidget.h4
-rw-r--r--src/libs/qmleditorwidgets/contextpanewidget.cpp24
-rw-r--r--src/libs/qmleditorwidgets/contextpanewidget.h14
-rw-r--r--src/libs/qmleditorwidgets/contextpanewidgetimage.cpp21
-rw-r--r--src/libs/qmleditorwidgets/contextpanewidgetimage.h6
-rw-r--r--src/libs/qmleditorwidgets/contextpanewidgetrectangle.h2
-rw-r--r--src/libs/qmleditorwidgets/customcolordialog.h3
-rw-r--r--src/libs/qmleditorwidgets/filewidget.cpp15
-rw-r--r--src/libs/qmleditorwidgets/filewidget.h15
-rw-r--r--src/libs/qmleditorwidgets/fontsizespinbox.h2
-rw-r--r--src/libs/qmleditorwidgets/gradientline.h3
-rw-r--r--src/libs/qmleditorwidgets/huecontrol.h3
-rw-r--r--src/libs/qmljs/qmljscodeformatter.h2
-rw-r--r--src/libs/qmljs/qmljsicontextpane.h8
-rw-r--r--src/libs/qmljs/qmljsindenter.cpp3
-rw-r--r--src/libs/qmljs/qmljsindenter.h5
-rw-r--r--src/libs/qmljs/qmljslineinfo.h2
-rw-r--r--src/libs/qmljs/qmljslink.h3
-rw-r--r--src/libs/qmljs/qmljsmodelmanagerinterface.h7
-rw-r--r--src/libs/qmljs/qmljspropertyreader.cpp2
-rw-r--r--src/libs/qmljs/qmljspropertyreader.h11
-rw-r--r--src/libs/qmljs/qmljsscanner.h4
-rw-r--r--src/libs/utils/annotateditemdelegate.h1
-rw-r--r--src/libs/utils/buildablehelperlibrary.h2
-rw-r--r--src/libs/utils/changeset.cpp2
-rw-r--r--src/libs/utils/changeset.h4
-rw-r--r--src/libs/utils/wizard.cpp16
-rw-r--r--src/libs/utils/wizard.h4
-rw-r--r--src/plugins/cppeditor/cppquickfix.cpp1
-rw-r--r--src/plugins/cppeditor/cppquickfixes.cpp1
-rw-r--r--src/plugins/cpptools/uicodecompletionsupport.cpp3
-rw-r--r--src/plugins/cvs/cvseditor.cpp1
-rw-r--r--src/plugins/find/findplugin.cpp5
-rw-r--r--src/plugins/find/ifindfilter.h6
-rw-r--r--src/plugins/find/ifindsupport.h1
-rw-r--r--src/plugins/git/giteditor.cpp1
-rw-r--r--src/plugins/locator/ilocatorfilter.h1
-rw-r--r--src/plugins/locator/opendocumentsfilter.cpp3
-rw-r--r--src/plugins/macros/actionmacrohandler.cpp16
-rw-r--r--src/plugins/macros/imacrohandler.h2
-rw-r--r--src/plugins/macros/macro.cpp3
-rw-r--r--src/plugins/macros/macro.h8
-rw-r--r--src/plugins/macros/macroevent.cpp4
-rw-r--r--src/plugins/macros/macroevent.h10
-rw-r--r--src/plugins/macros/macrolocatorfilter.cpp6
-rw-r--r--src/plugins/macros/macrolocatorfilter.h4
-rw-r--r--src/plugins/macros/macromanager.cpp25
-rw-r--r--src/plugins/macros/macrooptionspage.cpp6
-rw-r--r--src/plugins/macros/macrooptionswidget.cpp21
-rw-r--r--src/plugins/macros/macrooptionswidget.h8
-rw-r--r--src/plugins/macros/macrosettings.cpp2
-rw-r--r--src/plugins/macros/macrosplugin.cpp11
-rw-r--r--src/plugins/macros/macrotextfind.h2
-rw-r--r--src/plugins/macros/savedialog.cpp6
-rw-r--r--src/plugins/macros/savedialog.h2
-rw-r--r--src/plugins/perforce/perforceeditor.cpp1
-rw-r--r--src/plugins/projectexplorer/buildconfiguration.h3
-rw-r--r--src/plugins/projectexplorer/customexecutablerunconfiguration.cpp9
-rw-r--r--src/plugins/projectexplorer/debugginghelper.cpp6
-rw-r--r--src/plugins/projectexplorer/debugginghelper.h3
-rw-r--r--src/plugins/projectexplorer/deployconfiguration.cpp2
-rw-r--r--src/plugins/projectexplorer/deployconfiguration.h3
-rw-r--r--src/plugins/projectexplorer/outputformatter.h1
-rw-r--r--src/plugins/projectexplorer/processstep.cpp5
-rw-r--r--src/plugins/projectexplorer/projectexplorerconstants.h3
-rw-r--r--src/plugins/qmljstools/qmljsmodelmanager.h10
-rw-r--r--src/plugins/qmlprojectmanager/qmlproject.h6
-rw-r--r--src/plugins/qmlprojectmanager/qmlprojectplugin.cpp1
-rw-r--r--src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp1
-rw-r--r--src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.h6
-rw-r--r--src/plugins/qmlprojectmanager/qmlprojectrunconfigurationwidget.cpp10
-rw-r--r--src/plugins/qt4projectmanager/wizards/consoleappwizard.cpp2
-rw-r--r--src/plugins/subversion/subversioneditor.cpp1
-rw-r--r--src/plugins/texteditor/basefilefind.h2
-rw-r--r--src/plugins/texteditor/fontsettings.cpp6
-rw-r--r--src/plugins/texteditor/fontsettings.h7
-rw-r--r--src/plugins/texteditor/indenter.h5
-rw-r--r--src/plugins/texteditor/quickfix.h3
-rw-r--r--src/plugins/texteditor/refactoringchanges.cpp3
-rw-r--r--src/plugins/texteditor/refactoringchanges.h6
-rw-r--r--src/plugins/texteditor/syntaxhighlighter.h5
-rw-r--r--src/plugins/vcsbase/baseannotationhighlighter.h5
-rw-r--r--src/plugins/vcsbase/diffhighlighter.h4
-rw-r--r--src/plugins/vcsbase/vcsbaseeditor.cpp1
99 files changed, 275 insertions, 252 deletions
diff --git a/src/libs/cplusplus/BackwardsScanner.h b/src/libs/cplusplus/BackwardsScanner.h
index 7dd6798d1d..4e1c569d43 100644
--- a/src/libs/cplusplus/BackwardsScanner.h
+++ b/src/libs/cplusplus/BackwardsScanner.h
@@ -35,9 +35,10 @@
#include "SimpleLexer.h"
-#include <QtGui/QTextCursor>
#include <QtGui/QTextBlock>
+QT_FORWARD_DECLARE_CLASS(QTextCursor)
+
namespace CPlusPlus {
class CPLUSPLUS_EXPORT BackwardsScanner
diff --git a/src/libs/cplusplus/ExpressionUnderCursor.h b/src/libs/cplusplus/ExpressionUnderCursor.h
index 2a932f8703..15b4cb6200 100644
--- a/src/libs/cplusplus/ExpressionUnderCursor.h
+++ b/src/libs/cplusplus/ExpressionUnderCursor.h
@@ -35,7 +35,7 @@
#define CPLUSPLUS_EXPRESSIONUNDERCURSOR_H
#include "CPlusPlusForwardDeclarations.h"
-#include <QList>
+#include <QtCore/QList>
QT_BEGIN_NAMESPACE
class QString;
diff --git a/src/libs/cplusplus/Icons.h b/src/libs/cplusplus/Icons.h
index 7da7f8243e..055d7557dc 100644
--- a/src/libs/cplusplus/Icons.h
+++ b/src/libs/cplusplus/Icons.h
@@ -36,7 +36,7 @@
#include "CPlusPlusForwardDeclarations.h"
-#include <QIcon>
+#include <QtGui/QIcon>
namespace CPlusPlus {
diff --git a/src/libs/cplusplus/Macro.h b/src/libs/cplusplus/Macro.h
index 646426e69f..c5e45b6f0f 100644
--- a/src/libs/cplusplus/Macro.h
+++ b/src/libs/cplusplus/Macro.h
@@ -55,9 +55,9 @@
#include <CPlusPlusForwardDeclarations.h>
-#include <QByteArray>
-#include <QVector>
-#include <QString>
+#include <QtCore/QByteArray>
+#include <QtCore/QVector>
+#include <QtCore/QString>
namespace CPlusPlus {
diff --git a/src/libs/cplusplus/MatchingText.cpp b/src/libs/cplusplus/MatchingText.cpp
index 9185016eea..ebfa306546 100644
--- a/src/libs/cplusplus/MatchingText.cpp
+++ b/src/libs/cplusplus/MatchingText.cpp
@@ -36,6 +36,9 @@
#include <Token.h>
#include <QtGui/QTextDocument>
+#include <QtGui/QTextCursor>
+
+#include <QtCore/QChar>
#include <QtCore/QtDebug>
using namespace CPlusPlus;
diff --git a/src/libs/cplusplus/MatchingText.h b/src/libs/cplusplus/MatchingText.h
index 4c4b1d5ba4..a159ddcb9f 100644
--- a/src/libs/cplusplus/MatchingText.h
+++ b/src/libs/cplusplus/MatchingText.h
@@ -34,7 +34,9 @@
#define CPLUSPLUS_MATCHINGTEXT_H
#include <CPlusPlusForwardDeclarations.h>
-#include <QtGui/QTextCursor>
+
+QT_FORWARD_DECLARE_CLASS(QTextCursor)
+QT_FORWARD_DECLARE_CLASS(QChar)
namespace CPlusPlus {
diff --git a/src/libs/cplusplus/NamePrettyPrinter.h b/src/libs/cplusplus/NamePrettyPrinter.h
index c80c3d1508..ce3647b6a9 100644
--- a/src/libs/cplusplus/NamePrettyPrinter.h
+++ b/src/libs/cplusplus/NamePrettyPrinter.h
@@ -35,7 +35,7 @@
#define CPLUSPLUS_NAMEPRETTYPRINTER_H
#include <NameVisitor.h>
-#include <QString>
+#include <QtCore/QString>
namespace CPlusPlus {
diff --git a/src/libs/cplusplus/Overview.h b/src/libs/cplusplus/Overview.h
index 22cb7ecab8..f48a571466 100644
--- a/src/libs/cplusplus/Overview.h
+++ b/src/libs/cplusplus/Overview.h
@@ -35,7 +35,9 @@
#define CPLUSPLUS_OVERVIEW_H
#include <CPlusPlusForwardDeclarations.h>
-#include <QString>
+
+#include <QtCore/QList>
+#include <QtCore/QString>
namespace CPlusPlus {
diff --git a/src/libs/cplusplus/OverviewModel.h b/src/libs/cplusplus/OverviewModel.h
index e5f3ec25d3..43cd50b1f5 100644
--- a/src/libs/cplusplus/OverviewModel.h
+++ b/src/libs/cplusplus/OverviewModel.h
@@ -38,8 +38,7 @@
#include "Overview.h"
#include "Icons.h"
-#include <QAbstractItemModel>
-#include <QIcon>
+#include <QtCore/QAbstractItemModel>
namespace CPlusPlus {
diff --git a/src/libs/extensionsystem/pluginmanager.cpp b/src/libs/extensionsystem/pluginmanager.cpp
index 6948c27743..880ed63740 100644
--- a/src/libs/extensionsystem/pluginmanager.cpp
+++ b/src/libs/extensionsystem/pluginmanager.cpp
@@ -39,6 +39,7 @@
#include "iplugin.h"
#include "plugincollection.h"
+#include <QtCore/QEventLoop>
#include <QtCore/QDateTime>
#include <QtCore/QDir>
#include <QtCore/QMetaProperty>
diff --git a/src/libs/extensionsystem/pluginmanager_p.h b/src/libs/extensionsystem/pluginmanager_p.h
index 3a3b888490..fa9c4afcb8 100644
--- a/src/libs/extensionsystem/pluginmanager_p.h
+++ b/src/libs/extensionsystem/pluginmanager_p.h
@@ -36,16 +36,15 @@
#include "pluginspec.h"
-#include <QtCore/QList>
#include <QtCore/QSet>
#include <QtCore/QStringList>
#include <QtCore/QObject>
#include <QtCore/QScopedPointer>
-#include <QtCore/QEventLoop>
QT_BEGIN_NAMESPACE
class QTime;
class QSettings;
+class QEventLoop;
QT_END_NAMESPACE
namespace ExtensionSystem {
diff --git a/src/libs/qmleditorwidgets/colorbox.h b/src/libs/qmleditorwidgets/colorbox.h
index 53927dcac2..b3600455ca 100644
--- a/src/libs/qmleditorwidgets/colorbox.h
+++ b/src/libs/qmleditorwidgets/colorbox.h
@@ -36,8 +36,7 @@
#include <qmleditorwidgets_global.h>
#include <QtGui/QWidget>
-#include <QToolButton>
-#include <qdeclarative.h>
+#include <QtDeclarative/qdeclarative.h>
namespace QmlEditorWidgets {
diff --git a/src/libs/qmleditorwidgets/colorbutton.h b/src/libs/qmleditorwidgets/colorbutton.h
index 51c779d4c2..a9361b7a9c 100644
--- a/src/libs/qmleditorwidgets/colorbutton.h
+++ b/src/libs/qmleditorwidgets/colorbutton.h
@@ -35,9 +35,8 @@
#define COLORBUTTON_H
#include <qmleditorwidgets_global.h>
-#include <QtGui/QWidget>
-#include <QToolButton>
-#include <qdeclarative.h>
+#include <QtGui/QToolButton>
+#include <QtDeclarative/qdeclarative.h>
namespace QmlEditorWidgets {
diff --git a/src/libs/qmleditorwidgets/colorwidgets.h b/src/libs/qmleditorwidgets/colorwidgets.h
index bcc3b825ce..5af6dec064 100644
--- a/src/libs/qmleditorwidgets/colorwidgets.h
+++ b/src/libs/qmleditorwidgets/colorwidgets.h
@@ -35,16 +35,6 @@
#define COLORWIDGET_H
#include <qmleditorwidgets_global.h>
-#include <QWeakPointer>
-#include <QtGui/QWidget>
-#include <QLabel>
-#include <QToolButton>
-#include <QMouseEvent>
-
-
-QT_BEGIN_NAMESPACE
-class QToolButton;
-QT_END_NAMESPACE
namespace QmlEditorWidgets {
@@ -52,11 +42,8 @@ class QMLEDITORWIDGETS_EXPORT ColorWidgets {
public:
static void registerDeclarativeTypes();
-
-
};
-
-} //QmlDesigner
+} // namespace QmlEditorWidgets
#endif //COLORWIDGET_H
diff --git a/src/libs/qmleditorwidgets/contextpanetextwidget.cpp b/src/libs/qmleditorwidgets/contextpanetextwidget.cpp
index 40c64720da..030bc2e3f1 100644
--- a/src/libs/qmleditorwidgets/contextpanetextwidget.cpp
+++ b/src/libs/qmleditorwidgets/contextpanetextwidget.cpp
@@ -36,8 +36,8 @@
#include "customcolordialog.h"
#include "ui_contextpanetext.h"
#include <qmljs/qmljspropertyreader.h>
-#include <QTimerEvent>
-
+#include <QtCore/QTimerEvent>
+#include <QtCore/QVariant>
namespace QmlEditorWidgets {
ContextPaneTextWidget::ContextPaneTextWidget(QWidget *parent) :
diff --git a/src/libs/qmleditorwidgets/contextpanetextwidget.h b/src/libs/qmleditorwidgets/contextpanetextwidget.h
index 827e1369e8..c31bb4171c 100644
--- a/src/libs/qmleditorwidgets/contextpanetextwidget.h
+++ b/src/libs/qmleditorwidgets/contextpanetextwidget.h
@@ -35,10 +35,10 @@
#define CONTEXTPANETEXTWIDGET_H
#include <qmleditorwidgets_global.h>
-#include <QWidget>
-#include <QVariant>
+#include <QtGui/QWidget>
QT_BEGIN_NAMESPACE
+class QVariant;
namespace Ui {
class ContextPaneTextWidget;
}
diff --git a/src/libs/qmleditorwidgets/contextpanewidget.cpp b/src/libs/qmleditorwidgets/contextpanewidget.cpp
index 1271135e0a..4754f93a1e 100644
--- a/src/libs/qmleditorwidgets/contextpanewidget.cpp
+++ b/src/libs/qmleditorwidgets/contextpanewidget.cpp
@@ -32,17 +32,19 @@
**************************************************************************/
#include "contextpanewidget.h"
-#include <QFontComboBox>
-#include <QComboBox>
-#include <QSpinBox>
-#include <QToolButton>
-#include <QHBoxLayout>
-#include <QVBoxLayout>
-#include <QLabel>
-#include <QMouseEvent>
-#include <QGridLayout>
-#include <QToolButton>
-#include <QAction>
+#include <QtGui/QToolButton>
+#include <QtGui/QFontComboBox>
+#include <QtGui/QComboBox>
+#include <QtGui/QSpinBox>
+#include <QtGui/QToolButton>
+#include <QtGui/QHBoxLayout>
+#include <QtGui/QVBoxLayout>
+#include <QtGui/QLabel>
+#include <QtGui/QMouseEvent>
+#include <QtGui/QGridLayout>
+#include <QtGui/QToolButton>
+#include <QtGui/QGraphicsEffect>
+#include <QtGui/QAction>
#include "contextpanetextwidget.h"
#include "easingcontextpane.h"
#include "contextpanewidgetimage.h"
diff --git a/src/libs/qmleditorwidgets/contextpanewidget.h b/src/libs/qmleditorwidgets/contextpanewidget.h
index 41c9f4c7fd..9a42240b02 100644
--- a/src/libs/qmleditorwidgets/contextpanewidget.h
+++ b/src/libs/qmleditorwidgets/contextpanewidget.h
@@ -35,11 +35,15 @@
#define CONTEXTPANEWIDGET_H
#include <qmleditorwidgets_global.h>
-#include <QFrame>
-#include <QVariant>
-#include <QGraphicsEffect>
-#include <QWeakPointer>
-#include <QToolButton>
+#include <QtGui/QFrame>
+#include <QtCore/QWeakPointer>
+
+QT_BEGIN_NAMESPACE
+class QToolButton;
+class QVariant;
+class QGraphicsDropShadowEffect;
+class QGraphicsOpacityEffect;
+QT_END_NAMESPACE
namespace QmlJS {
class PropertyReader;
diff --git a/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp b/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp
index ab4eb49ba7..d6e77eb7b5 100644
--- a/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp
+++ b/src/libs/qmleditorwidgets/contextpanewidgetimage.cpp
@@ -35,16 +35,17 @@
#include "ui_contextpanewidgetimage.h"
#include "ui_contextpanewidgetborderimage.h"
#include <qmljs/qmljspropertyreader.h>
-#include <QFile>
-#include <QFileInfo>
-#include <QDir>
-#include <QPixmap>
-#include <QPainter>
-#include <QGraphicsEffect>
-#include <QMouseEvent>
-#include <QScrollArea>
-#include <QSlider>
-#include <QDebug>
+#include <QtCore/QFile>
+#include <QtCore/QFileInfo>
+#include <QtCore/QDir>
+#include <QtGui/QPixmap>
+#include <QtGui/QPainter>
+#include <QtGui/QGraphicsEffect>
+#include <QtGui/QMouseEvent>
+#include <QtGui/QScrollArea>
+#include <QtGui/QSlider>
+#include <QtGui/QToolButton>
+#include <QtCore/QDebug>
namespace QmlEditorWidgets {
diff --git a/src/libs/qmleditorwidgets/contextpanewidgetimage.h b/src/libs/qmleditorwidgets/contextpanewidgetimage.h
index 1e46a00bd2..6045339d0f 100644
--- a/src/libs/qmleditorwidgets/contextpanewidgetimage.h
+++ b/src/libs/qmleditorwidgets/contextpanewidgetimage.h
@@ -35,11 +35,9 @@
#define CONTEXTPANEWIDGETIMAGE_H
#include <qmleditorwidgets_global.h>
-#include <QWidget>
-#include <QFrame>
-#include <QLabel>
-#include <qdrawutil.h>
+#include <QtGui/QLabel>
#include <contextpanewidget.h>
+#include <qdrawutil.h>
QT_BEGIN_NAMESPACE
namespace Ui {
diff --git a/src/libs/qmleditorwidgets/contextpanewidgetrectangle.h b/src/libs/qmleditorwidgets/contextpanewidgetrectangle.h
index f0fad5f436..a2af64f008 100644
--- a/src/libs/qmleditorwidgets/contextpanewidgetrectangle.h
+++ b/src/libs/qmleditorwidgets/contextpanewidgetrectangle.h
@@ -35,7 +35,7 @@
#define CONTEXTPANEWIDGETRECTANGLE_H
#include <qmleditorwidgets_global.h>
-#include <QWidget>
+#include <QtGui/QWidget>
QT_BEGIN_NAMESPACE
namespace Ui {
diff --git a/src/libs/qmleditorwidgets/customcolordialog.h b/src/libs/qmleditorwidgets/customcolordialog.h
index ecece78b17..aaecadccd0 100644
--- a/src/libs/qmleditorwidgets/customcolordialog.h
+++ b/src/libs/qmleditorwidgets/customcolordialog.h
@@ -35,8 +35,7 @@
#define CUSTOMCOLORDIALOG_H
#include <qmleditorwidgets_global.h>
-#include <QFrame>
-#include <QDialog>
+#include <QtGui/QFrame>
QT_BEGIN_NAMESPACE
class QDoubleSpinBox;
diff --git a/src/libs/qmleditorwidgets/filewidget.cpp b/src/libs/qmleditorwidgets/filewidget.cpp
index 69c342e5f9..7e6e4c1ad7 100644
--- a/src/libs/qmleditorwidgets/filewidget.cpp
+++ b/src/libs/qmleditorwidgets/filewidget.cpp
@@ -32,12 +32,17 @@
**************************************************************************/
#include "filewidget.h"
-#include <QHBoxLayout>
-#include <QFont>
-#include <QFileDialog>
-#include <QDirIterator>
-#include <QDebug>
+#include <QtGui/QLabel>
+#include <QtGui/QToolButton>
+#include <QtGui/QLineEdit>
+#include <QtGui/QComboBox>
+
+#include <QtGui/QHBoxLayout>
+#include <QtGui/QFont>
+#include <QtGui/QFileDialog>
+#include <QtCore/QDirIterator>
+#include <QtCore/QDebug>
namespace QmlEditorWidgets {
diff --git a/src/libs/qmleditorwidgets/filewidget.h b/src/libs/qmleditorwidgets/filewidget.h
index ebb580987e..29bdd5c2aa 100644
--- a/src/libs/qmleditorwidgets/filewidget.h
+++ b/src/libs/qmleditorwidgets/filewidget.h
@@ -36,12 +36,17 @@
#define FILEWIDGET_H
#include <qmleditorwidgets_global.h>
+
#include <QtGui/QWidget>
-#include <QLabel>
-#include <QToolButton>
-#include <QLineEdit>
-#include <QComboBox>
-#include <QUrl>
+
+#include <QtCore/QUrl>
+
+QT_BEGIN_NAMESPACE
+class QLabel;
+class QToolButton;
+class QLineEdit;
+class QComboBox;
+QT_END_NAMESPACE
namespace QmlEditorWidgets {
diff --git a/src/libs/qmleditorwidgets/fontsizespinbox.h b/src/libs/qmleditorwidgets/fontsizespinbox.h
index f1e5f26aee..2fc6278919 100644
--- a/src/libs/qmleditorwidgets/fontsizespinbox.h
+++ b/src/libs/qmleditorwidgets/fontsizespinbox.h
@@ -35,7 +35,7 @@
#define FONTSIZESPINBOX_H
#include <qmleditorwidgets_global.h>
-#include <QAbstractSpinBox>
+#include <QtGui/QAbstractSpinBox>
namespace QmlEditorWidgets {
diff --git a/src/libs/qmleditorwidgets/gradientline.h b/src/libs/qmleditorwidgets/gradientline.h
index 6771c72209..2154dce5ff 100644
--- a/src/libs/qmleditorwidgets/gradientline.h
+++ b/src/libs/qmleditorwidgets/gradientline.h
@@ -36,8 +36,7 @@
#include <qmleditorwidgets_global.h>
#include <QtGui/QWidget>
-#include <QToolButton>
-#include <QLinearGradient>
+#include <QtGui/QLinearGradient>
namespace QmlEditorWidgets {
diff --git a/src/libs/qmleditorwidgets/huecontrol.h b/src/libs/qmleditorwidgets/huecontrol.h
index 4bafaaacec..6c599deeec 100644
--- a/src/libs/qmleditorwidgets/huecontrol.h
+++ b/src/libs/qmleditorwidgets/huecontrol.h
@@ -36,8 +36,7 @@
#include <qmleditorwidgets_global.h>
#include <QtGui/QWidget>
-#include <QToolButton>
-#include <qdeclarative.h>
+#include <QtDeclarative/qdeclarative.h>
namespace QmlEditorWidgets {
diff --git a/src/libs/qmljs/qmljscodeformatter.h b/src/libs/qmljs/qmljscodeformatter.h
index 9a513669de..28387ae337 100644
--- a/src/libs/qmljs/qmljscodeformatter.h
+++ b/src/libs/qmljs/qmljscodeformatter.h
@@ -38,11 +38,9 @@
#include "qmljsscanner.h"
-#include <QtCore/QChar>
#include <QtCore/QStack>
#include <QtCore/QList>
#include <QtCore/QVector>
-#include <QtCore/QPointer>
QT_BEGIN_NAMESPACE
class QTextDocument;
diff --git a/src/libs/qmljs/qmljsicontextpane.h b/src/libs/qmljs/qmljsicontextpane.h
index b508a3a198..37db7e5f00 100644
--- a/src/libs/qmljs/qmljsicontextpane.h
+++ b/src/libs/qmljs/qmljsicontextpane.h
@@ -34,21 +34,19 @@
#ifndef QMLJSICONTEXTPANE_H
#define QMLJSICONTEXTPANE_H
-#include <QObject>
+#include <QtCore/QObject>
+
#include "qmljs_global.h"
+
#include <qmljs/parser/qmljsastfwd_p.h>
#include <qmljs/qmljslookupcontext.h>
-
namespace TextEditor {
-
class BaseTextEditorEditable;
-
} //TextEditor
namespace QmlJS {
-
class QMLJS_EXPORT IContextPane : public QObject
{
Q_OBJECT
diff --git a/src/libs/qmljs/qmljsindenter.cpp b/src/libs/qmljs/qmljsindenter.cpp
index 51aad755ab..dc5c8179af 100644
--- a/src/libs/qmljs/qmljsindenter.cpp
+++ b/src/libs/qmljs/qmljsindenter.cpp
@@ -72,7 +72,8 @@
#include <qmljs/qmljsindenter.h>
#include <qmljs/qmljsscanner.h>
-#include <QtDebug>
+#include <QtCore/QtDebug>
+#include <QtGui/QTextBlock>
using namespace QmlJS;
diff --git a/src/libs/qmljs/qmljsindenter.h b/src/libs/qmljs/qmljsindenter.h
index e4617fb541..55655cc54d 100644
--- a/src/libs/qmljs/qmljsindenter.h
+++ b/src/libs/qmljs/qmljsindenter.h
@@ -35,12 +35,11 @@
#define QMLJSINDENTER_H
#include <qmljs/qmljs_global.h>
-#include <qmljs/qmljsscanner.h>
#include <qmljs/qmljslineinfo.h>
#include <QtCore/QRegExp>
-#include <QtCore/QStringList>
-#include <QtGui/QTextBlock>
+
+QT_FORWARD_DECLARE_CLASS(QTextBlock)
namespace QmlJS {
diff --git a/src/libs/qmljs/qmljslineinfo.h b/src/libs/qmljs/qmljslineinfo.h
index 17b6e9e948..75467ba3d0 100644
--- a/src/libs/qmljs/qmljslineinfo.h
+++ b/src/libs/qmljs/qmljslineinfo.h
@@ -38,9 +38,7 @@
#include <qmljs/qmljsscanner.h>
#include <QtCore/QRegExp>
-#include <QtCore/QStringList>
#include <QtGui/QTextBlock>
-#include <QtGui/QTextCursor>
namespace QmlJS {
diff --git a/src/libs/qmljs/qmljslink.h b/src/libs/qmljs/qmljslink.h
index c719504d1b..6b09ccf039 100644
--- a/src/libs/qmljs/qmljslink.h
+++ b/src/libs/qmljs/qmljslink.h
@@ -38,9 +38,6 @@
#include <qmljs/qmljsinterpreter.h>
#include <qmljs/parser/qmljsastfwd_p.h>
-#include <QtCore/QList>
-#include <QtCore/QHash>
-#include <QtCore/QStringList>
#include <QtCore/QCoreApplication>
namespace QmlJS {
diff --git a/src/libs/qmljs/qmljsmodelmanagerinterface.h b/src/libs/qmljs/qmljsmodelmanagerinterface.h
index 0fc69c9a37..15840d69ee 100644
--- a/src/libs/qmljs/qmljsmodelmanagerinterface.h
+++ b/src/libs/qmljs/qmljsmodelmanagerinterface.h
@@ -39,10 +39,9 @@
#include <utils/environment.h>
-#include <QObject>
-#include <QStringList>
-#include <QSharedPointer>
-#include <QPointer>
+#include <QtCore/QObject>
+#include <QtCore/QStringList>
+#include <QtCore/QPointer>
namespace ProjectExplorer {
class Project;
diff --git a/src/libs/qmljs/qmljspropertyreader.cpp b/src/libs/qmljs/qmljspropertyreader.cpp
index f37d2103b2..697d27b30d 100644
--- a/src/libs/qmljs/qmljspropertyreader.cpp
+++ b/src/libs/qmljs/qmljspropertyreader.cpp
@@ -36,6 +36,8 @@
#include <qmljs/parser/qmljsast_p.h>
#include <qmljs/qmljscheck.h>
+#include <QtGui/QLinearGradient>
+
namespace QmlJS {
using namespace AST;
diff --git a/src/libs/qmljs/qmljspropertyreader.h b/src/libs/qmljs/qmljspropertyreader.h
index 8ca0cd8ef1..d552bc8af0 100644
--- a/src/libs/qmljs/qmljspropertyreader.h
+++ b/src/libs/qmljs/qmljspropertyreader.h
@@ -38,12 +38,11 @@
#include <qmljs/parser/qmljsastfwd_p.h>
#include <qmljs/qmljsdocument.h>
-#include <QHash>
-#include <QList>
-#include <QVariant>
-#include <QString>
-#include <QStringList>
-#include <QLinearGradient>
+#include <QtCore/QHash>
+#include <QtCore/QVariant>
+#include <QtCore/QStringList>
+
+QT_FORWARD_DECLARE_CLASS(QLinearGradient)
namespace QmlJS {
diff --git a/src/libs/qmljs/qmljsscanner.h b/src/libs/qmljs/qmljsscanner.h
index cf7f0bd522..886d518edc 100644
--- a/src/libs/qmljs/qmljsscanner.h
+++ b/src/libs/qmljs/qmljsscanner.h
@@ -36,9 +36,7 @@
#include <qmljs/qmljs_global.h>
-#include <QtCore/QList>
-#include <QtCore/QSet>
-#include <QtCore/QString>
+#include <QtCore/QStringList>
namespace QmlJS {
diff --git a/src/libs/utils/annotateditemdelegate.h b/src/libs/utils/annotateditemdelegate.h
index d8b7235e79..fe0538fc9c 100644
--- a/src/libs/utils/annotateditemdelegate.h
+++ b/src/libs/utils/annotateditemdelegate.h
@@ -37,7 +37,6 @@
#include "utils_global.h"
#include <QtCore/QString>
-#include <QtCore/QSize>
#include <QtGui/QStyledItemDelegate>
namespace Utils {
diff --git a/src/libs/utils/buildablehelperlibrary.h b/src/libs/utils/buildablehelperlibrary.h
index 09615ce06a..2ed79c60eb 100644
--- a/src/libs/utils/buildablehelperlibrary.h
+++ b/src/libs/utils/buildablehelperlibrary.h
@@ -3,7 +3,7 @@
#include "utils_global.h"
-#include <QString>
+#include <QtCore/QString>
QT_FORWARD_DECLARE_CLASS(QFileInfo)
diff --git a/src/libs/utils/changeset.cpp b/src/libs/utils/changeset.cpp
index 1cdbb17fec..2eadb1feff 100644
--- a/src/libs/utils/changeset.cpp
+++ b/src/libs/utils/changeset.cpp
@@ -41,6 +41,8 @@
#include "changeset.h"
+#include <QtGui/QTextCursor>
+
namespace Utils {
ChangeSet::ChangeSet()
diff --git a/src/libs/utils/changeset.h b/src/libs/utils/changeset.h
index 68a26da74f..960b141c44 100644
--- a/src/libs/utils/changeset.h
+++ b/src/libs/utils/changeset.h
@@ -46,8 +46,8 @@
#include <QtCore/QString>
#include <QtCore/QList>
-#include <QtCore/QSharedPointer>
-#include <QtGui/QTextCursor>
+
+QT_FORWARD_DECLARE_CLASS(QTextCursor)
namespace Utils {
diff --git a/src/libs/utils/wizard.cpp b/src/libs/utils/wizard.cpp
index 99e708db26..4b69ceab41 100644
--- a/src/libs/utils/wizard.cpp
+++ b/src/libs/utils/wizard.cpp
@@ -32,13 +32,15 @@
**************************************************************************/
#include "wizard.h"
-#include <QLabel>
-#include <QVBoxLayout>
-#include <QHBoxLayout>
-#include <QMap>
-#include <QHash>
-#include <QVariant>
-#include <QStyle>
+
+#include <QtCore/QMap>
+#include <QtCore/QHash>
+#include <QtCore/QVariant>
+
+#include <QtGui/QLabel>
+#include <QtGui/QVBoxLayout>
+#include <QtGui/QHBoxLayout>
+#include <QtGui/QStyle>
namespace Utils {
diff --git a/src/libs/utils/wizard.h b/src/libs/utils/wizard.h
index 08fd6cac8e..3e8fb6bdb4 100644
--- a/src/libs/utils/wizard.h
+++ b/src/libs/utils/wizard.h
@@ -34,8 +34,6 @@
#ifndef WIZARD_H
#define WIZARD_H
-#include <QWizard>
-
#include "utils_global.h"
#include <QtGui/QWizard>
@@ -65,7 +63,7 @@ public:
signals:
void nextClicked(); /* workaround for QWizard behavior where page->initialize is
- called before currentIdChanged */
+ * called before currentIdChanged */
private slots:
void _q_currentPageChanged(int pageId);
diff --git a/src/plugins/cppeditor/cppquickfix.cpp b/src/plugins/cppeditor/cppquickfix.cpp
index cac143aae3..5b633d39fb 100644
--- a/src/plugins/cppeditor/cppquickfix.cpp
+++ b/src/plugins/cppeditor/cppquickfix.cpp
@@ -50,6 +50,7 @@
#include <cpptools/cpprefactoringchanges.h>
#include <QtGui/QTextBlock>
+#include <QtCore/QFileInfo>
using namespace CppEditor;
using namespace CppEditor::Internal;
diff --git a/src/plugins/cppeditor/cppquickfixes.cpp b/src/plugins/cppeditor/cppquickfixes.cpp
index 5901607458..5549b723f1 100644
--- a/src/plugins/cppeditor/cppquickfixes.cpp
+++ b/src/plugins/cppeditor/cppquickfixes.cpp
@@ -61,6 +61,7 @@
#include <cpptools/insertionpointlocator.h>
#include <extensionsystem/iplugin.h>
+#include <QtCore/QFileInfo>
#include <QtGui/QApplication>
#include <QtGui/QTextBlock>
#include <QtGui/QTextCursor>
diff --git a/src/plugins/cpptools/uicodecompletionsupport.cpp b/src/plugins/cpptools/uicodecompletionsupport.cpp
index 129861fde3..829ddbaefb 100644
--- a/src/plugins/cpptools/uicodecompletionsupport.cpp
+++ b/src/plugins/cpptools/uicodecompletionsupport.cpp
@@ -32,7 +32,10 @@
**************************************************************************/
#include "uicodecompletionsupport.h"
+
#include <QtCore/QProcess>
+#include <QtCore/QFile>
+#include <QtCore/QFileInfo>
enum { debug = 0 };
diff --git a/src/plugins/cvs/cvseditor.cpp b/src/plugins/cvs/cvseditor.cpp
index f119d47437..16f05befa6 100644
--- a/src/plugins/cvs/cvseditor.cpp
+++ b/src/plugins/cvs/cvseditor.cpp
@@ -42,6 +42,7 @@
#include <QtCore/QDebug>
#include <QtGui/QTextCursor>
+#include <QtGui/QTextBlock>
namespace CVS {
namespace Internal {
diff --git a/src/plugins/find/findplugin.cpp b/src/plugins/find/findplugin.cpp
index 612bb8f3f5..c9ee9d3310 100644
--- a/src/plugins/find/findplugin.cpp
+++ b/src/plugins/find/findplugin.cpp
@@ -373,6 +373,11 @@ QStringListModel *FindPlugin::replaceCompletionModel() const
return d->m_replaceCompletionModel;
}
+QKeySequence IFindFilter::defaultShortcut() const
+{
+ return QKeySequence();
+}
+
} // namespace Find
// declared in textfindconstants.h
diff --git a/src/plugins/find/ifindfilter.h b/src/plugins/find/ifindfilter.h
index 6d0f4b7bc9..85faaa5366 100644
--- a/src/plugins/find/ifindfilter.h
+++ b/src/plugins/find/ifindfilter.h
@@ -37,12 +37,10 @@
#include "find_global.h"
#include "textfindconstants.h"
-#include <QtGui/QTextDocument>
-#include <QtGui/QKeySequence>
-
QT_BEGIN_NAMESPACE
class QWidget;
class QSettings;
+class QKeySequence;
QT_END_NAMESPACE
namespace Find {
@@ -60,7 +58,7 @@ public:
virtual bool isEnabled() const = 0;
virtual bool canCancel() const = 0;
virtual void cancel() = 0;
- virtual QKeySequence defaultShortcut() const { return QKeySequence(); }
+ virtual QKeySequence defaultShortcut() const;
virtual bool isReplaceSupported() const { return false; }
virtual FindFlags supportedFindFlags() const;
diff --git a/src/plugins/find/ifindsupport.h b/src/plugins/find/ifindsupport.h
index 5ca361a8d3..49cc5df7ed 100644
--- a/src/plugins/find/ifindsupport.h
+++ b/src/plugins/find/ifindsupport.h
@@ -39,7 +39,6 @@
#include <QtCore/QObject>
#include <QtCore/QString>
-#include <QtGui/QTextDocument>
namespace Find {
diff --git a/src/plugins/git/giteditor.cpp b/src/plugins/git/giteditor.cpp
index 69221f2204..f9882bd4f8 100644
--- a/src/plugins/git/giteditor.cpp
+++ b/src/plugins/git/giteditor.cpp
@@ -53,6 +53,7 @@
#include <QtGui/QTextCursor>
#include <QtGui/QTextEdit>
+#include <QtGui/QTextBlock>
#define CHANGE_PATTERN_8C "[a-f0-9]{7,8}"
#define CHANGE_PATTERN_40C "[a-f0-9]{40,40}"
diff --git a/src/plugins/locator/ilocatorfilter.h b/src/plugins/locator/ilocatorfilter.h
index a581845635..0a8b2b152b 100644
--- a/src/plugins/locator/ilocatorfilter.h
+++ b/src/plugins/locator/ilocatorfilter.h
@@ -36,7 +36,6 @@
#include "locator_global.h"
-#include <QtCore/QDir>
#include <QtCore/QVariant>
#include <QtCore/QFutureInterface>
#include <QtGui/QIcon>
diff --git a/src/plugins/locator/opendocumentsfilter.cpp b/src/plugins/locator/opendocumentsfilter.cpp
index 64045ff136..d90bc3f395 100644
--- a/src/plugins/locator/opendocumentsfilter.cpp
+++ b/src/plugins/locator/opendocumentsfilter.cpp
@@ -36,6 +36,9 @@
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/ieditor.h>
+#include <QtCore/QFileInfo>
+#include <QtCore/QDir>
+
using namespace Core;
using namespace Locator;
using namespace Locator::Internal;
diff --git a/src/plugins/macros/actionmacrohandler.cpp b/src/plugins/macros/actionmacrohandler.cpp
index 3f8d8c6b2a..82f1e3de16 100644
--- a/src/plugins/macros/actionmacrohandler.cpp
+++ b/src/plugins/macros/actionmacrohandler.cpp
@@ -44,18 +44,18 @@
#include <coreplugin/uniqueidmanager.h>
#include <coreplugin/icontext.h>
-#include <QObject>
-#include <QEvent>
-#include <QAction>
-#include <QSignalMapper>
-#include <QShortcut>
-#include <QtAlgorithms>
-#include <QStringList>
+#include <QtCore/QObject>
+#include <QtCore/QEvent>
+#include <QtCore/QSignalMapper>
+#include <QtCore/QtAlgorithms>
+#include <QtCore/QStringList>
+
+#include <QtGui/QAction>
+#include <QtGui/QShortcut>
using namespace Macros;
using namespace Macros::Internal;
-
static const char EVENTNAME[] = "Action";
static quint8 ACTIONNAME = 0;
diff --git a/src/plugins/macros/imacrohandler.h b/src/plugins/macros/imacrohandler.h
index da84f68e26..409b66c235 100644
--- a/src/plugins/macros/imacrohandler.h
+++ b/src/plugins/macros/imacrohandler.h
@@ -35,7 +35,7 @@
#define MACROSPLUGIN_IMACROHANDLER_H
#include "macros_global.h"
-#include <QObject>
+#include <QtCore/QObject>
namespace Macros {
diff --git a/src/plugins/macros/macro.cpp b/src/plugins/macros/macro.cpp
index e21e9e4ff4..8e132df711 100644
--- a/src/plugins/macros/macro.cpp
+++ b/src/plugins/macros/macro.cpp
@@ -35,7 +35,8 @@
#include <coreplugin/coreconstants.h>
-#include <QFileInfo>
+#include <QtCore/QFileInfo>
+#include <QtCore/QDataStream>
using namespace Macros;
diff --git a/src/plugins/macros/macro.h b/src/plugins/macros/macro.h
index 17a951d89c..dc8fa0d9c5 100644
--- a/src/plugins/macros/macro.h
+++ b/src/plugins/macros/macro.h
@@ -34,11 +34,11 @@
#ifndef MACROSPLUGIN_MACRO_H
#define MACROSPLUGIN_MACRO_H
-#include <QList>
-#include <QString>
-
-#include "macroevent.h"
#include "macros_global.h"
+#include "macroevent.h"
+
+#include <QtCore/QList>
+#include <QtCore/QString>
namespace Macros {
diff --git a/src/plugins/macros/macroevent.cpp b/src/plugins/macros/macroevent.cpp
index 67a03ea5be..2ef2b93018 100644
--- a/src/plugins/macros/macroevent.cpp
+++ b/src/plugins/macros/macroevent.cpp
@@ -33,6 +33,10 @@
#include "macroevent.h"
+#include <QtCore/QString>
+#include <QtCore/QVariant>
+#include <QtCore/QDataStream>
+
using namespace Macros;
/*!
diff --git a/src/plugins/macros/macroevent.h b/src/plugins/macros/macroevent.h
index a1e31dcdf7..de32570e42 100644
--- a/src/plugins/macros/macroevent.h
+++ b/src/plugins/macros/macroevent.h
@@ -36,9 +36,13 @@
#include "macros_global.h"
-#include <QString>
-#include <QVariant>
-#include <QDataStream>
+#include <QtCore/QMap>
+
+QT_BEGIN_NAMESPACE
+class QByteArray;
+class QVariant;
+class QDataStream;
+QT_END_NAMESPACE
namespace Macros {
diff --git a/src/plugins/macros/macrolocatorfilter.cpp b/src/plugins/macros/macrolocatorfilter.cpp
index 8e914e562d..f65b5fa1d5 100644
--- a/src/plugins/macros/macrolocatorfilter.cpp
+++ b/src/plugins/macros/macrolocatorfilter.cpp
@@ -39,15 +39,15 @@
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/ieditor.h>
-#include <QPixmap>
+#include <QtGui/QPixmap>
using namespace Macros;
using namespace Macros::Internal;
MacroLocatorFilter::MacroLocatorFilter():
- m_icon(QPixmap(":/macros/images/macro.png"))
+ m_icon(QPixmap(QLatin1String(":/macros/images/macro.png")))
{
- setShortcutString("rm");
+ setShortcutString(QLatin1String("rm"));
}
MacroLocatorFilter::~MacroLocatorFilter()
diff --git a/src/plugins/macros/macrolocatorfilter.h b/src/plugins/macros/macrolocatorfilter.h
index dc95370746..561a1fc309 100644
--- a/src/plugins/macros/macrolocatorfilter.h
+++ b/src/plugins/macros/macrolocatorfilter.h
@@ -36,7 +36,7 @@
#include <locator/ilocatorfilter.h>
-#include <QIcon>
+#include <QtGui/QIcon>
namespace Macros {
@@ -61,7 +61,7 @@ public:
void refresh(QFutureInterface<void> &future);
private:
- QIcon m_icon;
+ const QIcon m_icon;
};
} // namespace Internal
diff --git a/src/plugins/macros/macromanager.cpp b/src/plugins/macros/macromanager.cpp
index 6e6c9bce15..f97ce1b063 100644
--- a/src/plugins/macros/macromanager.cpp
+++ b/src/plugins/macros/macromanager.cpp
@@ -54,18 +54,19 @@
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/ieditor.h>
-#include <QDir>
-#include <QFile>
-#include <QFileInfo>
-#include <QShortcut>
-#include <QKeySequence>
-#include <QMainWindow>
-#include <QSettings>
-#include <QAction>
-#include <QFileDialog>
-#include <QMessageBox>
-#include <QSignalMapper>
-#include <QList>
+#include <QtCore/QDir>
+#include <QtCore/QFile>
+#include <QtCore/QFileInfo>
+#include <QtCore/QSettings>
+#include <QtCore/QSignalMapper>
+#include <QtCore/QList>
+
+#include <QtGui/QShortcut>
+#include <QtGui/QKeySequence>
+#include <QtGui/QMainWindow>
+#include <QtGui/QAction>
+#include <QtGui/QFileDialog>
+#include <QtGui/QMessageBox>
using namespace Macros;
using namespace Macros::Internal;
diff --git a/src/plugins/macros/macrooptionspage.cpp b/src/plugins/macros/macrooptionspage.cpp
index 6dde17ea0d..52a3007084 100644
--- a/src/plugins/macros/macrooptionspage.cpp
+++ b/src/plugins/macros/macrooptionspage.cpp
@@ -39,9 +39,9 @@
#include <texteditor/texteditorconstants.h>
-#include <QCoreApplication>
-#include <QWidget>
-#include <QIcon>
+#include <QtCore/QCoreApplication>
+#include <QtGui/QWidget>
+#include <QtGui/QIcon>
using namespace Macros;
using namespace Macros::Internal;
diff --git a/src/plugins/macros/macrooptionswidget.cpp b/src/plugins/macros/macrooptionswidget.cpp
index 665f5cd780..703c82d8c1 100644
--- a/src/plugins/macros/macrooptionswidget.cpp
+++ b/src/plugins/macros/macrooptionswidget.cpp
@@ -44,16 +44,17 @@
#include <coreplugin/actionmanager/command.h>
#include <coreplugin/uniqueidmanager.h>
-#include <QButtonGroup>
-#include <QTreeWidget>
-#include <QTreeWidgetItem>
-#include <QCheckBox>
-#include <QDir>
-#include <QGroupBox>
-#include <QHeaderView>
-#include <QFileInfo>
-#include <QRegExpValidator>
-#include <QLineEdit>
+#include <QtCore/QDir>
+#include <QtCore/QFileInfo>
+
+#include <QtGui/QButtonGroup>
+#include <QtGui/QTreeWidget>
+#include <QtGui/QTreeWidgetItem>
+#include <QtGui/QCheckBox>
+#include <QtGui/QGroupBox>
+#include <QtGui/QHeaderView>
+#include <QtGui/QRegExpValidator>
+#include <QtGui/QLineEdit>
namespace {
int DIRECTORY = 1;
diff --git a/src/plugins/macros/macrooptionswidget.h b/src/plugins/macros/macrooptionswidget.h
index 16e17f4383..c3d84d5c37 100644
--- a/src/plugins/macros/macrooptionswidget.h
+++ b/src/plugins/macros/macrooptionswidget.h
@@ -34,10 +34,10 @@
#ifndef MACROSPLUGIN_MACROOPTIONSWIDGET_H
#define MACROSPLUGIN_MACROOPTIONSWIDGET_H
-#include <QWidget>
-#include <QPixmap>
-#include <QMap>
-#include <QStringList>
+#include <QtGui/QWidget>
+
+#include <QtCore/QStringList>
+#include <QtCore/QMap>
QT_BEGIN_NAMESPACE
class QTreeWidgetItem;
diff --git a/src/plugins/macros/macrosettings.cpp b/src/plugins/macros/macrosettings.cpp
index f27b219172..a3185b3ea8 100644
--- a/src/plugins/macros/macrosettings.cpp
+++ b/src/plugins/macros/macrosettings.cpp
@@ -33,7 +33,7 @@
#include "macrosettings.h"
-#include <QSettings>
+#include <QtCore/QSettings>
using namespace Macros::Internal;
diff --git a/src/plugins/macros/macrosplugin.cpp b/src/plugins/macros/macrosplugin.cpp
index 351b7d22d5..61f849c067 100644
--- a/src/plugins/macros/macrosplugin.cpp
+++ b/src/plugins/macros/macrosplugin.cpp
@@ -48,16 +48,15 @@
#include <coreplugin/uniqueidmanager.h>
#include <coreplugin/icontext.h>
-#include <QtPlugin>
-#include <QAction>
-#include <QKeySequence>
-#include <QSettings>
-#include <QMenu>
+#include <QtCore/QtPlugin>
+#include <QtCore/QSettings>
+#include <QtGui/QAction>
+#include <QtGui/QKeySequence>
+#include <QtGui/QMenu>
using namespace Macros;
using namespace Macros::Internal;
-
MacrosPlugin::MacrosPlugin()
{
}
diff --git a/src/plugins/macros/macrotextfind.h b/src/plugins/macros/macrotextfind.h
index 0a935ef3b6..3fc63aa8b7 100644
--- a/src/plugins/macros/macrotextfind.h
+++ b/src/plugins/macros/macrotextfind.h
@@ -36,7 +36,7 @@
#include <find/ifindsupport.h>
-#include <QPointer>
+#include <QtCore/QPointer>
namespace Macros {
namespace Internal {
diff --git a/src/plugins/macros/savedialog.cpp b/src/plugins/macros/savedialog.cpp
index 2021925d81..ef42e88b65 100644
--- a/src/plugins/macros/savedialog.cpp
+++ b/src/plugins/macros/savedialog.cpp
@@ -34,9 +34,9 @@
#include "savedialog.h"
#include "ui_savedialog.h"
-#include <QLineEdit>
-#include <QCheckBox>
-#include <QRegExpValidator>
+#include <QtGui/QLineEdit>
+#include <QtGui/QCheckBox>
+#include <QtGui/QRegExpValidator>
using namespace Macros::Internal;
diff --git a/src/plugins/macros/savedialog.h b/src/plugins/macros/savedialog.h
index cd44d76a27..d1d1e0c408 100644
--- a/src/plugins/macros/savedialog.h
+++ b/src/plugins/macros/savedialog.h
@@ -34,7 +34,7 @@
#ifndef MACROSPLUGIN_SAVEDIALOG_H
#define MACROSPLUGIN_SAVEDIALOG_H
-#include <QDialog>
+#include <QtGui/QDialog>
namespace Macros {
namespace Internal {
diff --git a/src/plugins/perforce/perforceeditor.cpp b/src/plugins/perforce/perforceeditor.cpp
index a86db992f2..a42d066091 100644
--- a/src/plugins/perforce/perforceeditor.cpp
+++ b/src/plugins/perforce/perforceeditor.cpp
@@ -54,6 +54,7 @@
#include <QtGui/QMenu>
#include <QtGui/QTextCursor>
#include <QtGui/QTextEdit>
+#include <QtGui/QTextBlock>
namespace Perforce {
namespace Internal {
diff --git a/src/plugins/projectexplorer/buildconfiguration.h b/src/plugins/projectexplorer/buildconfiguration.h
index 24a4d040b2..780304cc56 100644
--- a/src/plugins/projectexplorer/buildconfiguration.h
+++ b/src/plugins/projectexplorer/buildconfiguration.h
@@ -147,7 +147,4 @@ signals:
Q_DECLARE_METATYPE(ProjectExplorer::BuildConfiguration *)
-// Default directory to run custom (build) commands in.
-#define DEFAULT_WORKING_DIR "%{buildDir}"
-
#endif // BUILDCONFIGURATION_H
diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
index b334ce7fc1..dcfc7c9cf9 100644
--- a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
+++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp
@@ -34,11 +34,12 @@
#include "customexecutablerunconfiguration.h"
#include "customexecutableconfigurationwidget.h"
#include "toolchaintype.h"
+#include "buildconfiguration.h"
+#include "debugginghelper.h"
+#include "target.h"
+#include "projectexplorerconstants.h"
#include <coreplugin/icore.h>
-#include <projectexplorer/buildconfiguration.h>
-#include <projectexplorer/debugginghelper.h>
-#include <projectexplorer/target.h>
#include <utils/qtcprocess.h>
@@ -81,10 +82,10 @@ void CustomExecutableRunConfiguration::ctor()
CustomExecutableRunConfiguration::CustomExecutableRunConfiguration(Target *parent) :
LocalApplicationRunConfiguration(parent, QLatin1String(CUSTOM_EXECUTABLE_ID)),
+ m_workingDirectory(QLatin1String(ProjectExplorer::Constants::DEFAULT_WORKING_DIR)),
m_runMode(Gui),
m_baseEnvironmentBase(CustomExecutableRunConfiguration::BuildEnvironmentBase)
{
- m_workingDirectory = QLatin1String(DEFAULT_WORKING_DIR);
ctor();
}
diff --git a/src/plugins/projectexplorer/debugginghelper.cpp b/src/plugins/projectexplorer/debugginghelper.cpp
index af98003dff..35024087bd 100644
--- a/src/plugins/projectexplorer/debugginghelper.cpp
+++ b/src/plugins/projectexplorer/debugginghelper.cpp
@@ -34,14 +34,16 @@
#include "debugginghelper.h"
#include <coreplugin/icore.h>
+
+#include <utils/synchronousprocess.h>
+
#include <QtCore/QFileInfo>
#include <QtCore/QCoreApplication>
#include <QtCore/QHash>
#include <QtCore/QProcess>
#include <QtCore/QDir>
#include <QtCore/QDateTime>
-
-#include <utils/synchronousprocess.h>
+#include <QtCore/QStringList>
#include <QtGui/QDesktopServices>
diff --git a/src/plugins/projectexplorer/debugginghelper.h b/src/plugins/projectexplorer/debugginghelper.h
index 8cbc366833..931c46f3d6 100644
--- a/src/plugins/projectexplorer/debugginghelper.h
+++ b/src/plugins/projectexplorer/debugginghelper.h
@@ -39,7 +39,8 @@
#include <utils/buildablehelperlibrary.h>
#include <QtCore/QString>
-#include <QtCore/QStringList>
+
+QT_FORWARD_DECLARE_CLASS(QStringList)
namespace ProjectExplorer {
diff --git a/src/plugins/projectexplorer/deployconfiguration.cpp b/src/plugins/projectexplorer/deployconfiguration.cpp
index 8585124942..4a050c108e 100644
--- a/src/plugins/projectexplorer/deployconfiguration.cpp
+++ b/src/plugins/projectexplorer/deployconfiguration.cpp
@@ -40,6 +40,8 @@
#include "projectexplorerconstants.h"
#include "target.h"
+#include <QtCore/QStringList>
+
using namespace ProjectExplorer;
namespace {
diff --git a/src/plugins/projectexplorer/deployconfiguration.h b/src/plugins/projectexplorer/deployconfiguration.h
index b40c722196..14c86d6e3e 100644
--- a/src/plugins/projectexplorer/deployconfiguration.h
+++ b/src/plugins/projectexplorer/deployconfiguration.h
@@ -40,7 +40,8 @@
#include "namedwidget.h"
#include <QtCore/QString>
-#include <QtCore/QStringList>
+
+QT_FORWARD_DECLARE_CLASS(QStringList)
namespace ProjectExplorer {
diff --git a/src/plugins/projectexplorer/outputformatter.h b/src/plugins/projectexplorer/outputformatter.h
index 863141b06d..0c5d81e4b3 100644
--- a/src/plugins/projectexplorer/outputformatter.h
+++ b/src/plugins/projectexplorer/outputformatter.h
@@ -40,7 +40,6 @@
#include <QtCore/QObject>
QT_BEGIN_NAMESPACE
-class QMouseEvent;
class QPlainTextEdit;
class QTextCharFormat;
class QColor;
diff --git a/src/plugins/projectexplorer/processstep.cpp b/src/plugins/projectexplorer/processstep.cpp
index 4b8c90f5bb..bfe666920f 100644
--- a/src/plugins/projectexplorer/processstep.cpp
+++ b/src/plugins/projectexplorer/processstep.cpp
@@ -35,6 +35,7 @@
#include "buildstep.h"
#include "project.h"
#include "buildconfiguration.h"
+#include "projectexplorerconstants.h"
#include <coreplugin/ifile.h>
#include <utils/qtcprocess.h>
@@ -83,7 +84,7 @@ void ProcessStep::ctor()
//: Default ProcessStep display name
setDefaultDisplayName(tr("Custom Process Step"));
if (m_workingDirectory.isEmpty())
- m_workingDirectory = QLatin1String(DEFAULT_WORKING_DIR);
+ m_workingDirectory = QLatin1String(ProjectExplorer::Constants::DEFAULT_WORKING_DIR);
}
ProcessStep::~ProcessStep()
@@ -157,7 +158,7 @@ void ProcessStep::setEnabled(bool enabled)
void ProcessStep::setWorkingDirectory(const QString &workingDirectory)
{
if (workingDirectory.isEmpty())
- m_workingDirectory = QLatin1String(DEFAULT_WORKING_DIR);
+ m_workingDirectory = QLatin1String(ProjectExplorer::Constants::DEFAULT_WORKING_DIR);
else
m_workingDirectory = workingDirectory;
}
diff --git a/src/plugins/projectexplorer/projectexplorerconstants.h b/src/plugins/projectexplorer/projectexplorerconstants.h
index 806150559d..bfca377b87 100644
--- a/src/plugins/projectexplorer/projectexplorerconstants.h
+++ b/src/plugins/projectexplorer/projectexplorerconstants.h
@@ -225,6 +225,9 @@ const char * const DEFAULT_DEPLOYCONFIGURATION_ID = "ProjectExplorer.DefaultDepl
// Run Configuration defaults:
const int QML_DEFAULT_DEBUG_SERVER_PORT = 3768;
+// Default directory to run custom (build) commands in.
+const char * const DEFAULT_WORKING_DIR = "%{buildDir}";
+
} // namespace Constants
} // namespace ProjectExplorer
diff --git a/src/plugins/qmljstools/qmljsmodelmanager.h b/src/plugins/qmljstools/qmljsmodelmanager.h
index 9acebfee2f..b669767693 100644
--- a/src/plugins/qmljstools/qmljsmodelmanager.h
+++ b/src/plugins/qmljstools/qmljsmodelmanager.h
@@ -37,14 +37,12 @@
#include "qmljstools_global.h"
#include <qmljs/qmljsmodelmanagerinterface.h>
-#include <qmljs/qmljsdocument.h>
-#include <cplusplus/CppDocument.h>
+
#include <cplusplus/ModelManagerInterface.h>
-#include <QFuture>
-#include <QFutureSynchronizer>
-#include <QMutex>
-#include <QProcess>
+#include <QtCore/QFuture>
+#include <QtCore/QFutureSynchronizer>
+#include <QtCore/QMutex>
QT_FORWARD_DECLARE_CLASS(QTimer)
diff --git a/src/plugins/qmlprojectmanager/qmlproject.h b/src/plugins/qmlprojectmanager/qmlproject.h
index 46f67c7fe1..0b13dcadf1 100644
--- a/src/plugins/qmlprojectmanager/qmlproject.h
+++ b/src/plugins/qmlprojectmanager/qmlproject.h
@@ -34,10 +34,9 @@
#ifndef QMLPROJECT_H
#define QMLPROJECT_H
-#include "qmlprojectmanager.h"
#include "qmlprojectmanager_global.h"
#include "qmlprojectnodes.h"
-#include "qmlprojecttarget.h"
+#include "qmlprojectmanager.h"
#include <projectexplorer/project.h>
@@ -58,8 +57,7 @@ class QmlProjectItem;
namespace Internal {
class QmlProjectFile;
-class QmlProjectNode;
-
+class QmlProjectTarget;
} // namespace Internal
class QMLPROJECTMANAGER_EXPORT QmlProject : public ProjectExplorer::Project
diff --git a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
index f39d5f9fbd..a30696ef35 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
+++ b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp
@@ -38,6 +38,7 @@
#include "qmlproject.h"
#include "qmlprojectrunconfigurationfactory.h"
#include "qmlprojectruncontrol.h"
+#include "qmlprojecttarget.h"
#include "fileformat/qmlprojectfileformat.h"
#include <extensionsystem/pluginmanager.h>
diff --git a/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp b/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp
index 712d44d2c4..06e95fe195 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp
+++ b/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp
@@ -34,6 +34,7 @@
#include "qmlprojectrunconfiguration.h"
#include "qmlproject.h"
#include "qmlprojectmanagerconstants.h"
+#include "qmlprojecttarget.h"
#include "qmlprojectrunconfigurationwidget.h"
#include <coreplugin/mimedatabase.h>
#include <coreplugin/editormanager/editormanager.h>
diff --git a/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.h b/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.h
index c9f89d3829..9ac9c0cce1 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.h
+++ b/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.h
@@ -35,10 +35,10 @@
#define QMLPROJECTRUNCONFIGURATION_H
#include "qmlprojectmanager_global.h"
+
#include <projectexplorer/runconfiguration.h>
-#include <QWeakPointer>
-#include <QComboBox>
-#include <QLabel>
+
+#include <QtCore/QWeakPointer>
QT_FORWARD_DECLARE_CLASS(QStringListModel)
diff --git a/src/plugins/qmlprojectmanager/qmlprojectrunconfigurationwidget.cpp b/src/plugins/qmlprojectmanager/qmlprojectrunconfigurationwidget.cpp
index c6ef5b6360..cf843ab5ed 100644
--- a/src/plugins/qmlprojectmanager/qmlprojectrunconfigurationwidget.cpp
+++ b/src/plugins/qmlprojectmanager/qmlprojectrunconfigurationwidget.cpp
@@ -45,10 +45,12 @@
#include <qt4projectmanager/qt4projectmanagerconstants.h>
#include <qt4projectmanager/qtversionmanager.h>
-#include <QLineEdit>
-#include <QFormLayout>
-#include <QPushButton>
-#include <QStandardItemModel>
+#include <QtGui/QLineEdit>
+#include <QtGui/QComboBox>
+#include <QtGui/QFormLayout>
+#include <QtGui/QLabel>
+#include <QtGui/QPushButton>
+#include <QtGui/QStandardItemModel>
using Core::ICore;
using Utils::DebuggerLanguageChooser;
diff --git a/src/plugins/qt4projectmanager/wizards/consoleappwizard.cpp b/src/plugins/qt4projectmanager/wizards/consoleappwizard.cpp
index dae643ee6b..d5e0257b3e 100644
--- a/src/plugins/qt4projectmanager/wizards/consoleappwizard.cpp
+++ b/src/plugins/qt4projectmanager/wizards/consoleappwizard.cpp
@@ -39,7 +39,7 @@
#include <cpptools/abstracteditorsupport.h>
#include <QtGui/QIcon>
-
+#include <QtCore/QFileInfo>
#include <QtCore/QTextStream>
static const char *mainCppC =
diff --git a/src/plugins/subversion/subversioneditor.cpp b/src/plugins/subversion/subversioneditor.cpp
index 5eeadc17fa..b699f57e28 100644
--- a/src/plugins/subversion/subversioneditor.cpp
+++ b/src/plugins/subversion/subversioneditor.cpp
@@ -43,6 +43,7 @@
#include <QtCore/QDebug>
#include <QtCore/QFileInfo>
#include <QtGui/QTextCursor>
+#include <QtGui/QTextBlock>
using namespace Subversion;
using namespace Subversion::Internal;
diff --git a/src/plugins/texteditor/basefilefind.h b/src/plugins/texteditor/basefilefind.h
index 7b14c65204..9a084c9150 100644
--- a/src/plugins/texteditor/basefilefind.h
+++ b/src/plugins/texteditor/basefilefind.h
@@ -47,8 +47,6 @@
QT_BEGIN_NAMESPACE
class QLabel;
class QComboBox;
-class QCheckBox;
-class QStringListModel;
QT_END_NAMESPACE
namespace Find {
diff --git a/src/plugins/texteditor/fontsettings.cpp b/src/plugins/texteditor/fontsettings.cpp
index 8d850b930d..c551167a40 100644
--- a/src/plugins/texteditor/fontsettings.cpp
+++ b/src/plugins/texteditor/fontsettings.cpp
@@ -42,6 +42,7 @@
#include <QtCore/QSettings>
#include <QtCore/QCoreApplication>
#include <QtGui/QTextCharFormat>
+#include <QtGui/QFont>
static const char *fontFamilyKey = "FontFamily";
static const char *fontSizeKey = "FontSize";
@@ -242,6 +243,11 @@ void FontSettings::setFontZoom(int zoom)
m_fontZoom = zoom;
}
+QFont FontSettings::font() const
+{
+ return QFont(family(), fontSize());
+}
+
/**
* Returns the configured antialiasing behavior.
*/
diff --git a/src/plugins/texteditor/fontsettings.h b/src/plugins/texteditor/fontsettings.h
index 51ff040116..3695281fb4 100644
--- a/src/plugins/texteditor/fontsettings.h
+++ b/src/plugins/texteditor/fontsettings.h
@@ -40,14 +40,12 @@
#include <QtCore/QString>
#include <QtCore/QList>
-#include <QtCore/QMap>
#include <QtCore/QVector>
-#include <QtGui/QFont>
QT_BEGIN_NAMESPACE
class QTextCharFormat;
class QSettings;
-
+class QFont;
QT_END_NAMESPACE
namespace TextEditor {
@@ -85,8 +83,7 @@ public:
int fontZoom() const;
void setFontZoom(int zoom);
- QFont font() const
- { return QFont(family(), fontSize()); }
+ QFont font() const;
bool antialias() const;
void setAntialias(bool antialias);
diff --git a/src/plugins/texteditor/indenter.h b/src/plugins/texteditor/indenter.h
index d472906c9f..8e29c3d865 100644
--- a/src/plugins/texteditor/indenter.h
+++ b/src/plugins/texteditor/indenter.h
@@ -36,12 +36,13 @@
#include "texteditor_global.h"
-#include <QtCore/QChar>
-#include <QtGui/QTextBlock>
+#include <QtCore/QtGlobal>
QT_BEGIN_NAMESPACE
class QTextDocument;
class QTextCursor;
+class QTextBlock;
+class QChar;
QT_END_NAMESPACE
namespace TextEditor {
diff --git a/src/plugins/texteditor/quickfix.h b/src/plugins/texteditor/quickfix.h
index 5bbcb62cdd..6e38ec3154 100644
--- a/src/plugins/texteditor/quickfix.h
+++ b/src/plugins/texteditor/quickfix.h
@@ -37,10 +37,7 @@
#include "texteditor_global.h"
#include "icompletioncollector.h"
-#include <utils/changeset.h>
-
#include <QtCore/QSharedPointer>
-#include <QtGui/QTextCursor>
namespace TextEditor {
diff --git a/src/plugins/texteditor/refactoringchanges.cpp b/src/plugins/texteditor/refactoringchanges.cpp
index 911f90e6e4..66900174c4 100644
--- a/src/plugins/texteditor/refactoringchanges.cpp
+++ b/src/plugins/texteditor/refactoringchanges.cpp
@@ -32,6 +32,7 @@
**************************************************************************/
#include "refactoringchanges.h"
+#include "basetexteditor.h"
#include <coreplugin/editormanager/editormanager.h>
#include <extensionsystem/pluginmanager.h>
@@ -39,6 +40,8 @@
#include <QtCore/QFile>
#include <QtCore/QSet>
#include <QtGui/QTextBlock>
+#include <QtGui/QTextCursor>
+#include <QtGui/QTextDocument>
#include <QtCore/QDebug>
using namespace TextEditor;
diff --git a/src/plugins/texteditor/refactoringchanges.h b/src/plugins/texteditor/refactoringchanges.h
index 4af97d8ed2..87e8a355dc 100644
--- a/src/plugins/texteditor/refactoringchanges.h
+++ b/src/plugins/texteditor/refactoringchanges.h
@@ -35,15 +35,15 @@
#define REFACTORINGCHANGES_H
#include <utils/changeset.h>
-#include <texteditor/basetexteditor.h>
#include <texteditor/texteditor_global.h>
#include <QtCore/QList>
-#include <QtCore/QMap>
#include <QtCore/QString>
-namespace TextEditor {
+QT_FORWARD_DECLARE_CLASS(QTextDocument)
+namespace TextEditor {
+class BaseTextEditor;
class RefactoringChanges;
class TEXTEDITOR_EXPORT RefactoringFile
diff --git a/src/plugins/texteditor/syntaxhighlighter.h b/src/plugins/texteditor/syntaxhighlighter.h
index 1c7a3a8e88..25c8b35b14 100644
--- a/src/plugins/texteditor/syntaxhighlighter.h
+++ b/src/plugins/texteditor/syntaxhighlighter.h
@@ -43,9 +43,8 @@
#define TEXTEDITOR_SYNTAXHIGHLIGHTER_H
#include "texteditor_global.h"
-#include <QtCore/qglobal.h>
-#include <QtCore/qobject.h>
-#include <QtGui/qtextobject.h>
+
+#include <QtCore/QObject>
#include <QtGui/QTextLayout>
QT_BEGIN_NAMESPACE
diff --git a/src/plugins/vcsbase/baseannotationhighlighter.h b/src/plugins/vcsbase/baseannotationhighlighter.h
index 97021c63a6..188dbe7dfb 100644
--- a/src/plugins/vcsbase/baseannotationhighlighter.h
+++ b/src/plugins/vcsbase/baseannotationhighlighter.h
@@ -35,11 +35,8 @@
#define BASEANNOTATIONHIGHLIGHTER_H
#include "vcsbase_global.h"
+
#include <texteditor/syntaxhighlighter.h>
-#include <QtCore/QMap>
-#include <QtCore/QSet>
-#include <QtGui/QSyntaxHighlighter>
-#include <QtGui/QTextCharFormat>
namespace VCSBase {
diff --git a/src/plugins/vcsbase/diffhighlighter.h b/src/plugins/vcsbase/diffhighlighter.h
index d714283f3e..26e599c7c3 100644
--- a/src/plugins/vcsbase/diffhighlighter.h
+++ b/src/plugins/vcsbase/diffhighlighter.h
@@ -35,12 +35,12 @@
#define DIFFHIGHLIGHTER_H
#include "vcsbase_global.h"
+
#include <texteditor/syntaxhighlighter.h>
-#include <QtGui/QTextCharFormat>
-#include <QtCore/QVector>
QT_BEGIN_NAMESPACE
class QRegExp;
+class QTextCharFormat;
QT_END_NAMESPACE
namespace Core {
diff --git a/src/plugins/vcsbase/vcsbaseeditor.cpp b/src/plugins/vcsbase/vcsbaseeditor.cpp
index a1853857ff..2f8fa77cbb 100644
--- a/src/plugins/vcsbase/vcsbaseeditor.cpp
+++ b/src/plugins/vcsbase/vcsbaseeditor.cpp
@@ -58,6 +58,7 @@
#include <QtCore/QSet>
#include <QtCore/QTextCodec>
#include <QtCore/QTextStream>
+#include <QtGui/QTextBlock>
#include <QtGui/QAction>
#include <QtGui/QKeyEvent>
#include <QtGui/QLayout>