Commit ffbbf64e authored by Friedemann Kleint's avatar Friedemann Kleint

Clean headers in QML-Designer.

Ran script to remove inludes on a trial-and-error basis and
manually corrected it.

Change-Id: I8a2e9e35980198fc4162623db044c228bd209a0f
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent a25d66a9
......@@ -29,12 +29,8 @@
#include "designeractionmanager.h"
#include "modelnodecontextmenu_helper.h"
#include "modelnodeoperations.h"
#include "componentcore_constants.h"
#include <nodeproperty.h>
#include <QMenu>
namespace QmlDesigner {
static inline QString captionForModelNode(const ModelNode &modelNode)
......
......@@ -34,8 +34,6 @@
#include "abstractdesigneraction.h"
#include "qmlmodelview.h"
#include <QScopedPointer>
namespace QmlDesigner {
namespace Internal {
......
......@@ -31,22 +31,7 @@
#include "modelnodecontextmenu_helper.h"
#include "designeractionmanager.h"
#include <cmath>
#include <QApplication>
#include <QMessageBox>
#include <coreplugin/editormanager/editormanager.h>
#include <nodeabstractproperty.h>
#include <nodelistproperty.h>
#include <nodemetainfo.h>
#include <modelnode.h>
#include <qmlitemnode.h>
#include <variantproperty.h>
#include <bindingproperty.h>
#include <nodeproperty.h>
#include <rewritingexception.h>
#include <rewritertransaction.h>
#include <designmodewidget.h>
#include <qmlanchors.h>
#include <QSet>
......
......@@ -34,7 +34,6 @@
#include <qmlitemnode.h>
#include <bindingproperty.h>
#include <nodeproperty.h>
#include <designmodewidget.h>
#include <qmldesignerplugin.h>
namespace QmlDesigner {
......
......@@ -30,9 +30,7 @@
#ifndef MODELNODECONTEXTMENU_HELPER_H
#define MODELNODECONTEXTMENU_HELPER_H
#include "modelnodecontextmenu.h"
#include "modelnodeoperations.h"
#include "designeractionmanager.h"
#include "defaultdesigneraction.h"
#include <QAction>
......
......@@ -31,20 +31,14 @@
#include "modelnodecontextmenu_helper.h"
#include <cmath>
#include <QApplication>
#include <QMessageBox>
#include <coreplugin/editormanager/editormanager.h>
#include <nodeabstractproperty.h>
#include <nodelistproperty.h>
#include <nodemetainfo.h>
#include <modelnode.h>
#include <qmlitemnode.h>
#include <variantproperty.h>
#include <bindingproperty.h>
#include <nodeproperty.h>
#include <rewritingexception.h>
#include <rewritertransaction.h>
#include <designmodewidget.h>
#include <qmlanchors.h>
namespace QmlDesigner {
......
......@@ -31,7 +31,6 @@
#include "debugviewwidget.h"
#include <qmldesignerplugin.h>
#include <designersettings.h>
#include <bindingproperty.h>
#include <signalhandlerproperty.h>
......
......@@ -32,12 +32,10 @@
#include <modelnodecontextmenu.h>
#include <coreplugin/editormanager/editormanager.h>
#include <QDebug>
#include <QGraphicsSceneDragDropEvent>
#include <QMimeData>
#include <nodemetainfo.h>
#include <nodeproperty.h>
namespace QmlDesigner {
......
......@@ -31,7 +31,6 @@
#include <QGraphicsScene>
#include <QGraphicsRectItem>
#include <QBrush>
#include "layeritem.h"
#include <QDebug>
......
......@@ -31,17 +31,13 @@
#include "formeditorscene.h"
#include "formeditorview.h"
#include "formeditorwidget.h"
#include "itemutilfunctions.h"
#include <customdraganddrop.h>
#include <metainfo.h>
#include <rewritingexception.h>
#include "resizehandleitem.h"
#include <QApplication>
#include <QGraphicsSceneMouseEvent>
#include <QDebug>
#include <QMimeData>
#include <QMessageBox>
#include <QTimer>
......
......@@ -33,9 +33,7 @@
#include "abstractformeditortool.h"
#include "movemanipulator.h"
#include "selectionindicator.h"
#include "resizeindicator.h"
#include <QHash>
#include <QObject>
#include <QScopedPointer>
......
......@@ -30,11 +30,8 @@
#include "formeditorgraphicsview.h"
#include <QWheelEvent>
#include <QApplication>
#include <QDebug>
#include <qmlanchors.h>
namespace QmlDesigner {
FormEditorGraphicsView::FormEditorGraphicsView(QWidget *parent) :
......
......@@ -31,7 +31,6 @@
#define FORMEDITORGRAPHICSVIEW_H
#include <QGraphicsView>
#include <qmlitemnode.h>
namespace QmlDesigner {
......
......@@ -29,24 +29,17 @@
#include "formeditoritem.h"
#include "formeditorscene.h"
#include "formeditornodeinstanceview.h"
#include "selectiontool.h"
#include <modelnode.h>
#include <nodemetainfo.h>
#include <qmlanchors.h>
#include <QGraphicsSceneMouseEvent>
#include <QDebug>
#include <QPainter>
#include <QStyleOptionGraphicsItem>
#include <QGraphicsView>
#include <QTimeLine>
#include <cmath>
#include <invalidmodelnodeexception.h>
namespace QmlDesigner {
......
......@@ -31,12 +31,10 @@
#include "formeditorview.h"
#include "formeditorwidget.h"
#include "formeditoritem.h"
#include "movemanipulator.h"
#include "qmldesignerplugin.h"
#include "designersettings.h"
#include <metainfo.h>
#include <QGraphicsSceneDragDropEvent>
#include <QEvent>
......@@ -44,13 +42,9 @@
#include <QGraphicsSceneHoverEvent>
#include <QGraphicsView>
#include <QApplication>
#include <QDebug>
#include <QList>
#include "formeditornodeinstanceview.h"
#include "resizehandleitem.h"
......
......@@ -33,29 +33,20 @@
#include "resizetool.h"
#include "dragtool.h"
#include "formeditorwidget.h"
#include "formeditornodeinstanceview.h"
#include "formeditoritem.h"
#include "formeditorscene.h"
#include "toolbox.h"
#include "abstractcustomtool.h"
#include <designmodecontext.h>
#include <rewritertransaction.h>
#include <modelnode.h>
#include <itemlibraryinfo.h>
#include <metainfo.h>
#include <model.h>
#include <QApplication>
#include <QDebug>
#include <QPair>
#include <QString>
#include <QDir>
#include <QAction>
#include <QTimer>
#include <zoomaction.h>
#include <nodeabstractproperty.h>
#include <nodelistproperty.h>
#include <commondefines.h>
#include <coreplugin/icore.h>
......
......@@ -32,13 +32,8 @@
#include "designersettings.h"
#include <QWheelEvent>
#include <cmath>
#include <QCoreApplication>
#include <QPushButton>
#include <QFile>
#include <QVBoxLayout>
#include <QActionGroup>
#include <QGraphicsView>
#include <toolbox.h>
#include <zoomaction.h>
#include <formeditorgraphicsview.h>
......
......@@ -28,7 +28,6 @@
****************************************************************************/
#include "itemutilfunctions.h"
#include <formeditorscene.h>
#include <QRectF>
#include <QDebug>
......
......@@ -31,7 +31,6 @@
#define ITEMUTILFUNCTIONS_H
#include <QRectF>
#include <QGraphicsItem>
#include "formeditoritem.h"
......
......@@ -31,7 +31,6 @@
#define LAYERITEM_H
#include <QGraphicsObject>
#include <QWeakPointer>
namespace QmlDesigner {
......
......@@ -28,19 +28,14 @@
****************************************************************************/
#include "movemanipulator.h"
#include "itemutilfunctions.h"
#include "layeritem.h"
#include "formeditoritem.h"
#include "formeditorscene.h"
#include <QPointF>
#include <QDebug>
#include <QColor>
#include <QPen>
#include <QApplication>
#include <limits>
#include <model.h>
#include <qmlanchors.h>
#include <nodemetainfo.h>
#include <variantproperty.h>
......
......@@ -32,12 +32,10 @@
#include <QWeakPointer>
#include <QGraphicsItem>
#include <QGraphicsLineItem>
#include <QHash>
#include <QPointF>
#include <QRectF>
#include "controlelement.h"
#include "formeditoritem.h"
#include "rewritertransaction.h"
#include "snapper.h"
......
......@@ -32,12 +32,9 @@
#include "formeditorscene.h"
#include "formeditorview.h"
#include "formeditorwidget.h"
#include "itemutilfunctions.h"
#include "resizehandleitem.h"
#include "nodemetainfo.h"
#include <QApplication>
#include <QGraphicsSceneMouseEvent>
#include <QAction>
......
......@@ -35,8 +35,6 @@
#include "selectionindicator.h"
#include "resizeindicator.h"
#include <QHash>
namespace QmlDesigner {
......
......@@ -29,9 +29,6 @@
#include "resizehandleitem.h"
#include <formeditoritem.h>
#include <QCursor>
namespace QmlDesigner {
ResizeHandleItem::ResizeHandleItem(QGraphicsItem *parent, const ResizeController &resizeController)
......
......@@ -33,7 +33,6 @@
#include "formeditorscene.h"
#include "qmlanchors.h"
#include <QDebug>
#include <model.h>
#include "mathutils.h"
#include <limits>
......
......@@ -35,7 +35,6 @@
#include "resizehandleitem.h"
#include <QApplication>
#include <QGraphicsSceneMouseEvent>
#include <QAction>
#include <QDebug>
......
......@@ -29,7 +29,6 @@
#include "rubberbandselectionmanipulator.h"
#include "model.h"
#include "formeditorscene.h"
namespace QmlDesigner {
......
......@@ -31,7 +31,6 @@
#define SCALEMANIPULATOR_H
#include <QPointF>
#include <QList>
......
......@@ -30,11 +30,7 @@
#include "selectionindicator.h"
#include <QPen>
#include <cmath>
#include <QGraphicsScene>
#include <formeditorview.h>
#include <formeditorwidget.h>
#include <zoomaction.h>
namespace QmlDesigner {
......
......@@ -32,13 +32,10 @@
#include "formeditorview.h"
#include "resizehandleitem.h"
#include "nodemetainfo.h"
#include <QApplication>
#include <QGraphicsSceneMouseEvent>
#include <QDebug>
#include <QClipboard>
namespace QmlDesigner {
......
......@@ -32,13 +32,11 @@
#include "abstractformeditortool.h"
#include "movemanipulator.h"
#include "rubberbandselectionmanipulator.h"
#include "singleselectionmanipulator.h"
#include "selectionindicator.h"
#include "resizeindicator.h"
#include <QHash>
#include <QTime>
namespace QmlDesigner {
......
......@@ -29,8 +29,6 @@
#include "singleselectionmanipulator.h"
#include "model.h"
#include "nodemetainfo.h"
#include "formeditorscene.h"
#include "formeditorview.h"
#include <QDebug>
......
......@@ -30,7 +30,6 @@
#ifndef SINGLESELECTIONMANIPULATOR_H
#define SINGLESELECTIONMANIPULATOR_H
#include "selectionrectangle.h"
#include "formeditorview.h"
namespace QmlDesigner {
......
......@@ -32,7 +32,6 @@
#include <QDebug>
#include <limits>
#include <cmath>
#include <QLineF>
#include <QPen>
#include <QApplication>
......
......@@ -29,8 +29,6 @@
#include "snappinglinecreator.h"
#include <QGraphicsItem>
#include "onedimensionalcluster.h"
#include "formeditoritem.h"
#include "formeditorview.h"
......
......@@ -28,16 +28,11 @@
****************************************************************************/
#include "toolbox.h"
#include "utils/styledbar.h"
#include "utils/crumblepath.h"
#include <QToolBar>
#include <QHBoxLayout>
#include <QPainter>
#include <QDebug>
#include <QFile>
#include <QFrame>
#include <QVariant>
namespace QmlDesigner {
......
......@@ -30,9 +30,6 @@
#include "zoomaction.h"
#include <QComboBox>
#include <QLineEdit>
#include <QEvent>
#include <QCoreApplication>
namespace QmlDesigner {
......
......@@ -32,7 +32,6 @@
#include <QComboBox>
#include "componentview.h"
#include <QStandardItemModel>
#include <qmldesignerplugin.h>
#include <modelnode.h>
namespace QmlDesigner {
......
......@@ -31,10 +31,8 @@
#include "componentaction.h"
#include <QDebug>
#include <nodemetainfo.h>
#include <nodeabstractproperty.h>
#include <QStandardItemModel>
#include <QAbstractItemView>
// silence gcc warnings about unused parameters
......
......@@ -29,16 +29,8 @@
#include "designdocument.h"
#include "designdocumentview.h"
#include "xuifiledialog.h"
#include "componentview.h"
#include <itemlibrarywidget.h>
#include <formeditorwidget.h>
#include <toolbox.h>
#include <metainfo.h>
#include <invalidargumentexception.h>
#include <componentaction.h>
#include <designeractionmanager.h>
#include <qmlobjectnode.h>
#include <rewritingexception.h>
#include <nodelistproperty.h>
......@@ -50,32 +42,15 @@
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/project.h>
#include <projectexplorer/target.h>
#include <qmlprojectmanager/qmlprojectrunconfiguration.h>
#include <qtsupport/qtkitinformation.h>
#include <qtsupport/qtsupportconstants.h>
#include <qtsupport/qtversionmanager.h>
#include <utils/crumblepath.h>
#include <utils/fileutils.h>
#include <QCoreApplication>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QUrl>
#include <QProcess>
#include <QTemporaryFile>
#include <QDebug>
#include <QEvent>
#include <QBoxLayout>
#include <QComboBox>
#include <QErrorMessage>
#include <QFileDialog>
#include <QLabel>
#include <QMdiArea>
#include <QMdiSubWindow>