diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-07-13 16:36:37 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-07-13 16:36:37 +0200 |
commit | e8c0d0c162d69f667d8430c878478a681b4f2880 (patch) | |
tree | ff55add3ba886575f925fd488f175fef868ced94 /src | |
parent | 0f21c8e6213c2d3b9c0b39931ab2e9c34e84e3ed (diff) | |
download | qt-creator-e8c0d0c162d69f667d8430c878478a681b4f2880.tar.gz |
Yet another include purging spree.
Diffstat (limited to 'src')
25 files changed, 24 insertions, 44 deletions
diff --git a/src/plugins/cppeditor/cpphoverhandler.cpp b/src/plugins/cppeditor/cpphoverhandler.cpp index d47cde0c7b..ba5866aecc 100644 --- a/src/plugins/cppeditor/cpphoverhandler.cpp +++ b/src/plugins/cppeditor/cpphoverhandler.cpp @@ -235,7 +235,7 @@ bool CppHoverHandler::matchDiagnosticMessage(const CPlusPlus::Document::Ptr &doc const int line) { foreach (const Document::DiagnosticMessage &m, document->diagnosticMessages()) { - if (m.line() == line) { + if (m.line() == unsigned(line)) { m_toolTip = m.text(); return true; } @@ -246,7 +246,7 @@ bool CppHoverHandler::matchDiagnosticMessage(const CPlusPlus::Document::Ptr &doc bool CppHoverHandler::matchIncludeFile(const CPlusPlus::Document::Ptr &document, const int line) { foreach (const Document::Include &includeFile, document->includes()) { - if (includeFile.line() == line) { + if (includeFile.line() == unsigned(line)) { m_toolTip = QDir::toNativeSeparators(includeFile.fileName()); const QString &fileName = QFileInfo(includeFile.fileName()).fileName(); m_helpCandidates.append(HelpCandidate(fileName, fileName, HelpCandidate::Include)); diff --git a/src/plugins/projectexplorer/buildconfigdialog.cpp b/src/plugins/projectexplorer/buildconfigdialog.cpp index 5e3a58fbe1..32e018ec45 100644 --- a/src/plugins/projectexplorer/buildconfigdialog.cpp +++ b/src/plugins/projectexplorer/buildconfigdialog.cpp @@ -31,6 +31,7 @@ #include "project.h" #include "runconfiguration.h" #include "buildconfiguration.h" +#include "target.h" #include <QtGui/QVBoxLayout> #include <QtGui/QPushButton> diff --git a/src/plugins/projectexplorer/compileoutputwindow.cpp b/src/plugins/projectexplorer/compileoutputwindow.cpp index 591e9e10eb..1e789d1fba 100644 --- a/src/plugins/projectexplorer/compileoutputwindow.cpp +++ b/src/plugins/projectexplorer/compileoutputwindow.cpp @@ -38,6 +38,7 @@ #include <QtGui/QKeyEvent> #include <QtGui/QIcon> +#include <QtGui/QTextCharFormat> #include <QtGui/QTextBlock> #include <QtGui/QTextCursor> #include <QtGui/QTextEdit> diff --git a/src/plugins/projectexplorer/compileoutputwindow.h b/src/plugins/projectexplorer/compileoutputwindow.h index 2065af56a8..8d34cf1656 100644 --- a/src/plugins/projectexplorer/compileoutputwindow.h +++ b/src/plugins/projectexplorer/compileoutputwindow.h @@ -34,11 +34,9 @@ #include <QtCore/QHash> -#include <QtGui/QColor> -#include <QtGui/QTextCharFormat> - QT_BEGIN_NAMESPACE class QPlainTextEdit; +class QTextCharFormat; QT_END_NAMESPACE namespace ProjectExplorer { diff --git a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp index de2894ac8c..43a3af6a73 100644 --- a/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp +++ b/src/plugins/projectexplorer/customexecutablerunconfiguration.cpp @@ -38,6 +38,7 @@ #include <utils/detailswidget.h> #include <utils/pathchooser.h> +#include <QtCore/QDir> #include <QtGui/QCheckBox> #include <QtGui/QComboBox> #include <QtGui/QDialog> diff --git a/src/plugins/projectexplorer/miniprojecttargetselector.cpp b/src/plugins/projectexplorer/miniprojecttargetselector.cpp index 3bbc97bf28..315ed6f1da 100644 --- a/src/plugins/projectexplorer/miniprojecttargetselector.cpp +++ b/src/plugins/projectexplorer/miniprojecttargetselector.cpp @@ -30,6 +30,7 @@ #include "miniprojecttargetselector.h" #include "buildconfigurationmodel.h" #include "runconfigurationmodel.h" +#include "target.h" #include <utils/qtcassert.h> #include <utils/styledbar.h> diff --git a/src/plugins/projectexplorer/outputwindow.cpp b/src/plugins/projectexplorer/outputwindow.cpp index 91d0cab951..481bf4deb7 100644 --- a/src/plugins/projectexplorer/outputwindow.cpp +++ b/src/plugins/projectexplorer/outputwindow.cpp @@ -33,6 +33,7 @@ #include "projectexplorersettings.h" #include "runconfiguration.h" #include "session.h" +#include "outputformatter.h" #include <coreplugin/actionmanager/actionmanager.h> #include <coreplugin/actionmanager/actioncontainer.h> @@ -56,6 +57,7 @@ #include <QtGui/QVBoxLayout> #include <QtGui/QTabWidget> #include <QtGui/QToolButton> +#include <QtGui/QShowEvent> using namespace ProjectExplorer::Internal; using namespace ProjectExplorer; diff --git a/src/plugins/projectexplorer/outputwindow.h b/src/plugins/projectexplorer/outputwindow.h index 0646c16f7e..6822b1cfcf 100644 --- a/src/plugins/projectexplorer/outputwindow.h +++ b/src/plugins/projectexplorer/outputwindow.h @@ -31,12 +31,9 @@ #define OUTPUTWINDOW_H #include <coreplugin/ioutputpane.h> -#include <projectexplorer/outputformatter.h> -#include <QtCore/QObject> #include <QtCore/QHash> #include <QtGui/QIcon> -#include <QtGui/QShowEvent> #include <QtGui/QPlainTextEdit> QT_BEGIN_NAMESPACE @@ -50,7 +47,7 @@ namespace Core { } namespace ProjectExplorer { - +class OutputFormatter; class RunControl; namespace Constants { diff --git a/src/plugins/projectexplorer/project.h b/src/plugins/projectexplorer/project.h index 01b4569cb3..f88dcabd76 100644 --- a/src/plugins/projectexplorer/project.h +++ b/src/plugins/projectexplorer/project.h @@ -31,7 +31,6 @@ #define PROJECT_H #include "projectexplorer_export.h" -#include "target.h" #include <QtCore/QObject> #include <QtCore/QSet> diff --git a/src/plugins/projectexplorer/projectwindow.cpp b/src/plugins/projectexplorer/projectwindow.cpp index d6b4e505cb..cd1a210ca7 100644 --- a/src/plugins/projectexplorer/projectwindow.cpp +++ b/src/plugins/projectexplorer/projectwindow.cpp @@ -59,6 +59,7 @@ #include <QtGui/QScrollArea> #include <QtGui/QLabel> #include <QtGui/QPainter> +#include <QtGui/QStackedWidget> #include <QtGui/QPaintEvent> #include <QtGui/QMenu> diff --git a/src/plugins/projectexplorer/projectwindow.h b/src/plugins/projectexplorer/projectwindow.h index b8f9e0e01a..b4bf4fc948 100644 --- a/src/plugins/projectexplorer/projectwindow.h +++ b/src/plugins/projectexplorer/projectwindow.h @@ -30,22 +30,13 @@ #ifndef PROJECTWINDOW_H #define PROJECTWINDOW_H -#include "iprojectproperties.h" - -#include <QtCore/QPair> -#include <QtCore/QMap> -#include <QtGui/QApplication> -#include <QtGui/QComboBox> -#include <QtGui/QLabel> -#include <QtGui/QPushButton> #include <QtGui/QScrollArea> -#include <QtGui/QStackedWidget> -#include <QtGui/QWidget> QT_BEGIN_NAMESPACE class QLabel; class QGridLayout; class QMenu; +class QStackedWidget; QT_END_NAMESPACE namespace ProjectExplorer { @@ -105,7 +96,6 @@ private: QList<ProjectExplorer::Project *> m_tabIndexToProject; }; - } // namespace Internal } // namespace ProjectExplorer diff --git a/src/plugins/projectexplorer/runsettingspropertiespage.h b/src/plugins/projectexplorer/runsettingspropertiespage.h index 29eeb04b2e..5491a2afbd 100644 --- a/src/plugins/projectexplorer/runsettingspropertiespage.h +++ b/src/plugins/projectexplorer/runsettingspropertiespage.h @@ -33,7 +33,6 @@ #include "iprojectproperties.h" #include <QtGui/QWidget> -#include <QtCore/QAbstractListModel> QT_BEGIN_NAMESPACE class QMenu; diff --git a/src/plugins/projectexplorer/target.h b/src/plugins/projectexplorer/target.h index d92128a824..f68e311766 100644 --- a/src/plugins/projectexplorer/target.h +++ b/src/plugins/projectexplorer/target.h @@ -33,8 +33,6 @@ #include "projectconfiguration.h" #include "projectexplorer_export.h" -#include <QtCore/QObject> -#include <QtGui/QFileSystemModel> #include <QtGui/QIcon> namespace ProjectExplorer { diff --git a/src/plugins/projectexplorer/targetsettingspanel.cpp b/src/plugins/projectexplorer/targetsettingspanel.cpp index 69a77ae983..8ef5beb3d9 100644 --- a/src/plugins/projectexplorer/targetsettingspanel.cpp +++ b/src/plugins/projectexplorer/targetsettingspanel.cpp @@ -43,6 +43,7 @@ #include <QtGui/QMenu> #include <QtGui/QMessageBox> #include <QtGui/QVBoxLayout> +#include <QtGui/QStackedWidget> using namespace ProjectExplorer; using namespace ProjectExplorer::Internal; diff --git a/src/plugins/projectexplorer/targetsettingspanel.h b/src/plugins/projectexplorer/targetsettingspanel.h index 6d449ec1c7..874263b936 100644 --- a/src/plugins/projectexplorer/targetsettingspanel.h +++ b/src/plugins/projectexplorer/targetsettingspanel.h @@ -30,19 +30,18 @@ #ifndef TARGETSETTINGSPANEL_H #define TARGETSETTINGSPANEL_H -#include "iprojectproperties.h" - -#include <QtGui/QStackedWidget> #include <QtGui/QWidget> QT_BEGIN_NAMESPACE class QAction; class QMenu; +class QStackedWidget; QT_END_NAMESPACE namespace ProjectExplorer { class Target; +class Project; namespace Internal { diff --git a/src/plugins/projectexplorer/taskhub.h b/src/plugins/projectexplorer/taskhub.h index ec27b0a3c9..1fd5a10f92 100644 --- a/src/plugins/projectexplorer/taskhub.h +++ b/src/plugins/projectexplorer/taskhub.h @@ -31,7 +31,7 @@ #define TASKHUB_H #include "task.h" -#include "projectexplorer_export.h" + #include <QtCore/QObject> #include <QtGui/QIcon> diff --git a/src/plugins/projectexplorer/taskwindow.h b/src/plugins/projectexplorer/taskwindow.h index b6f1f4c8fb..d5a0f410c0 100644 --- a/src/plugins/projectexplorer/taskwindow.h +++ b/src/plugins/projectexplorer/taskwindow.h @@ -30,17 +30,17 @@ #ifndef TASKWINDOW_H #define TASKWINDOW_H -#include "task.h" #include <coreplugin/ioutputpane.h> -#include <QtGui/QIcon> QT_BEGIN_NAMESPACE class QAction; class QModelIndex; +class QPoint; QT_END_NAMESPACE namespace ProjectExplorer { class TaskHub; +class Task; namespace Internal { class TaskWindowPrivate; diff --git a/src/plugins/projectexplorer/vcsannotatetaskhandler.h b/src/plugins/projectexplorer/vcsannotatetaskhandler.h index 27fa40a804..18bfcaf6b8 100644 --- a/src/plugins/projectexplorer/vcsannotatetaskhandler.h +++ b/src/plugins/projectexplorer/vcsannotatetaskhandler.h @@ -34,9 +34,6 @@ #include "itaskhandler.h" -#include <QtCore/QHash> -#include <QtCore/QString> - namespace Core { class IVersionControl; } diff --git a/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.h b/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.h index db2664dee9..e0903d3eed 100644 --- a/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.h +++ b/src/plugins/qt4projectmanager/gettingstartedwelcomepagewidget.h @@ -30,7 +30,7 @@ #ifndef GETTINGSTARTEDWELCOMEPAGEWIDGET_H #define GETTINGSTARTEDWELCOMEPAGEWIDGET_H -#include <QWidget> +#include <QtGui/QWidget> namespace Qt4ProjectManager { namespace Internal { diff --git a/src/plugins/qt4projectmanager/projectloadwizard.cpp b/src/plugins/qt4projectmanager/projectloadwizard.cpp index 3a5e3986e8..277b3b8ae0 100644 --- a/src/plugins/qt4projectmanager/projectloadwizard.cpp +++ b/src/plugins/qt4projectmanager/projectloadwizard.cpp @@ -35,6 +35,7 @@ #include "makestep.h" #include "qt4buildconfiguration.h" #include "qt4projectmanagerconstants.h" +#include "qtversionmanager.h" #include "wizards/targetsetuppage.h" diff --git a/src/plugins/qt4projectmanager/projectloadwizard.h b/src/plugins/qt4projectmanager/projectloadwizard.h index c05345c981..b6e56d6ce1 100644 --- a/src/plugins/qt4projectmanager/projectloadwizard.h +++ b/src/plugins/qt4projectmanager/projectloadwizard.h @@ -30,17 +30,13 @@ #ifndef PROJECTLOADWIZARD_H #define PROJECTLOADWIZARD_H -#include "qtversionmanager.h" -#include <wizards/targetsetuppage.h> - #include <QtGui/QWizard> namespace Qt4ProjectManager { class Qt4Project; namespace Internal { - -class TargetsPage; +class TargetSetupPage; class ProjectLoadWizard : public QWizard { diff --git a/src/plugins/qt4projectmanager/qmakeparser.h b/src/plugins/qt4projectmanager/qmakeparser.h index 9f6999b14e..0bbd17e30e 100644 --- a/src/plugins/qt4projectmanager/qmakeparser.h +++ b/src/plugins/qt4projectmanager/qmakeparser.h @@ -32,8 +32,6 @@ #include <projectexplorer/ioutputparser.h> -#include <QtCore/QRegExp> - namespace Qt4ProjectManager { namespace Internal { diff --git a/src/plugins/qt4projectmanager/qt-s60/s60createpackagestep.cpp b/src/plugins/qt4projectmanager/qt-s60/s60createpackagestep.cpp index 3683accd37..54a88c18aa 100644 --- a/src/plugins/qt4projectmanager/qt-s60/s60createpackagestep.cpp +++ b/src/plugins/qt4projectmanager/qt-s60/s60createpackagestep.cpp @@ -37,6 +37,8 @@ #include <projectexplorer/target.h> #include <projectexplorer/gnumakeparser.h> +#include <QtCore/QDir> + using namespace Qt4ProjectManager::Internal; namespace { diff --git a/src/plugins/qt4projectmanager/qtoptionspage.h b/src/plugins/qt4projectmanager/qtoptionspage.h index 5f066880c0..65a3956a3a 100644 --- a/src/plugins/qt4projectmanager/qtoptionspage.h +++ b/src/plugins/qt4projectmanager/qtoptionspage.h @@ -35,8 +35,6 @@ #include <QtCore/QFutureInterface> #include <QtGui/QWidget> -#include <QtGui/QPixmap> -#include <QtGui/QIcon> QT_BEGIN_NAMESPACE class QTreeWidgetItem; diff --git a/src/plugins/qt4projectmanager/qtversionmanager.h b/src/plugins/qt4projectmanager/qtversionmanager.h index 385c22730f..60f77252f3 100644 --- a/src/plugins/qt4projectmanager/qtversionmanager.h +++ b/src/plugins/qt4projectmanager/qtversionmanager.h @@ -30,8 +30,8 @@ #ifndef QTVERSIONMANAGER_H #define QTVERSIONMANAGER_H -#include <projectexplorer/taskwindow.h> #include <projectexplorer/toolchain.h> +#include <projectexplorer/task.h> #include <QtCore/QHash> #include <QtCore/QSet> |