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 @@ ...@@ -29,12 +29,8 @@
#include "designeractionmanager.h" #include "designeractionmanager.h"
#include "modelnodecontextmenu_helper.h" #include "modelnodecontextmenu_helper.h"
#include "modelnodeoperations.h"
#include "componentcore_constants.h"
#include <nodeproperty.h> #include <nodeproperty.h>
#include <QMenu>
namespace QmlDesigner { namespace QmlDesigner {
static inline QString captionForModelNode(const ModelNode &modelNode) static inline QString captionForModelNode(const ModelNode &modelNode)
......
...@@ -34,8 +34,6 @@ ...@@ -34,8 +34,6 @@
#include "abstractdesigneraction.h" #include "abstractdesigneraction.h"
#include "qmlmodelview.h" #include "qmlmodelview.h"
#include <QScopedPointer>
namespace QmlDesigner { namespace QmlDesigner {
namespace Internal { namespace Internal {
......
...@@ -31,22 +31,7 @@ ...@@ -31,22 +31,7 @@
#include "modelnodecontextmenu_helper.h" #include "modelnodecontextmenu_helper.h"
#include "designeractionmanager.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 <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> #include <QSet>
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include <qmlitemnode.h> #include <qmlitemnode.h>
#include <bindingproperty.h> #include <bindingproperty.h>
#include <nodeproperty.h> #include <nodeproperty.h>
#include <designmodewidget.h>
#include <qmldesignerplugin.h> #include <qmldesignerplugin.h>
namespace QmlDesigner { namespace QmlDesigner {
......
...@@ -30,9 +30,7 @@ ...@@ -30,9 +30,7 @@
#ifndef MODELNODECONTEXTMENU_HELPER_H #ifndef MODELNODECONTEXTMENU_HELPER_H
#define MODELNODECONTEXTMENU_HELPER_H #define MODELNODECONTEXTMENU_HELPER_H
#include "modelnodecontextmenu.h"
#include "modelnodeoperations.h" #include "modelnodeoperations.h"
#include "designeractionmanager.h"
#include "defaultdesigneraction.h" #include "defaultdesigneraction.h"
#include <QAction> #include <QAction>
......
...@@ -31,20 +31,14 @@ ...@@ -31,20 +31,14 @@
#include "modelnodecontextmenu_helper.h" #include "modelnodecontextmenu_helper.h"
#include <cmath> #include <cmath>
#include <QApplication>
#include <QMessageBox> #include <QMessageBox>
#include <coreplugin/editormanager/editormanager.h>
#include <nodeabstractproperty.h> #include <nodeabstractproperty.h>
#include <nodelistproperty.h>
#include <nodemetainfo.h> #include <nodemetainfo.h>
#include <modelnode.h> #include <modelnode.h>
#include <qmlitemnode.h> #include <qmlitemnode.h>
#include <variantproperty.h> #include <variantproperty.h>
#include <bindingproperty.h>
#include <nodeproperty.h>
#include <rewritingexception.h> #include <rewritingexception.h>
#include <rewritertransaction.h> #include <rewritertransaction.h>
#include <designmodewidget.h>
#include <qmlanchors.h> #include <qmlanchors.h>
namespace QmlDesigner { namespace QmlDesigner {
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include "debugviewwidget.h" #include "debugviewwidget.h"
#include <qmldesignerplugin.h> #include <qmldesignerplugin.h>
#include <designersettings.h>
#include <bindingproperty.h> #include <bindingproperty.h>
#include <signalhandlerproperty.h> #include <signalhandlerproperty.h>
......
...@@ -32,12 +32,10 @@ ...@@ -32,12 +32,10 @@
#include <modelnodecontextmenu.h> #include <modelnodecontextmenu.h>
#include <coreplugin/editormanager/editormanager.h>
#include <QDebug> #include <QDebug>
#include <QGraphicsSceneDragDropEvent> #include <QGraphicsSceneDragDropEvent>
#include <QMimeData>
#include <nodemetainfo.h> #include <nodemetainfo.h>
#include <nodeproperty.h>
namespace QmlDesigner { namespace QmlDesigner {
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <QGraphicsScene> #include <QGraphicsScene>
#include <QGraphicsRectItem> #include <QGraphicsRectItem>
#include <QBrush>
#include "layeritem.h" #include "layeritem.h"
#include <QDebug> #include <QDebug>
......
...@@ -31,17 +31,13 @@ ...@@ -31,17 +31,13 @@
#include "formeditorscene.h" #include "formeditorscene.h"
#include "formeditorview.h" #include "formeditorview.h"
#include "formeditorwidget.h"
#include "itemutilfunctions.h"
#include <customdraganddrop.h> #include <customdraganddrop.h>
#include <metainfo.h> #include <metainfo.h>
#include <rewritingexception.h> #include <rewritingexception.h>
#include "resizehandleitem.h"
#include <QApplication>
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QDebug> #include <QDebug>
#include <QMimeData>
#include <QMessageBox> #include <QMessageBox>
#include <QTimer> #include <QTimer>
......
...@@ -33,9 +33,7 @@ ...@@ -33,9 +33,7 @@
#include "abstractformeditortool.h" #include "abstractformeditortool.h"
#include "movemanipulator.h" #include "movemanipulator.h"
#include "selectionindicator.h" #include "selectionindicator.h"
#include "resizeindicator.h"
#include <QHash>
#include <QObject> #include <QObject>
#include <QScopedPointer> #include <QScopedPointer>
......
...@@ -30,11 +30,8 @@ ...@@ -30,11 +30,8 @@
#include "formeditorgraphicsview.h" #include "formeditorgraphicsview.h"
#include <QWheelEvent> #include <QWheelEvent>
#include <QApplication>
#include <QDebug> #include <QDebug>
#include <qmlanchors.h>
namespace QmlDesigner { namespace QmlDesigner {
FormEditorGraphicsView::FormEditorGraphicsView(QWidget *parent) : FormEditorGraphicsView::FormEditorGraphicsView(QWidget *parent) :
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#define FORMEDITORGRAPHICSVIEW_H #define FORMEDITORGRAPHICSVIEW_H
#include <QGraphicsView> #include <QGraphicsView>
#include <qmlitemnode.h>
namespace QmlDesigner { namespace QmlDesigner {
......
...@@ -29,24 +29,17 @@ ...@@ -29,24 +29,17 @@
#include "formeditoritem.h" #include "formeditoritem.h"
#include "formeditorscene.h" #include "formeditorscene.h"
#include "formeditornodeinstanceview.h"
#include "selectiontool.h"
#include <modelnode.h> #include <modelnode.h>
#include <nodemetainfo.h>
#include <qmlanchors.h>
#include <QGraphicsSceneMouseEvent>
#include <QDebug> #include <QDebug>
#include <QPainter> #include <QPainter>
#include <QStyleOptionGraphicsItem> #include <QStyleOptionGraphicsItem>
#include <QGraphicsView>
#include <QTimeLine> #include <QTimeLine>
#include <cmath> #include <cmath>
#include <invalidmodelnodeexception.h>
namespace QmlDesigner { namespace QmlDesigner {
......
...@@ -31,12 +31,10 @@ ...@@ -31,12 +31,10 @@
#include "formeditorview.h" #include "formeditorview.h"
#include "formeditorwidget.h" #include "formeditorwidget.h"
#include "formeditoritem.h" #include "formeditoritem.h"
#include "movemanipulator.h"
#include "qmldesignerplugin.h" #include "qmldesignerplugin.h"
#include "designersettings.h" #include "designersettings.h"
#include <metainfo.h>
#include <QGraphicsSceneDragDropEvent> #include <QGraphicsSceneDragDropEvent>
#include <QEvent> #include <QEvent>
...@@ -44,13 +42,9 @@ ...@@ -44,13 +42,9 @@
#include <QGraphicsSceneHoverEvent> #include <QGraphicsSceneHoverEvent>
#include <QGraphicsView> #include <QGraphicsView>
#include <QApplication>
#include <QDebug> #include <QDebug>
#include <QList> #include <QList>
#include "formeditornodeinstanceview.h"
#include "resizehandleitem.h"
......
...@@ -33,29 +33,20 @@ ...@@ -33,29 +33,20 @@
#include "resizetool.h" #include "resizetool.h"
#include "dragtool.h" #include "dragtool.h"
#include "formeditorwidget.h" #include "formeditorwidget.h"
#include "formeditornodeinstanceview.h"
#include "formeditoritem.h" #include "formeditoritem.h"
#include "formeditorscene.h" #include "formeditorscene.h"
#include "toolbox.h"
#include "abstractcustomtool.h" #include "abstractcustomtool.h"
#include <designmodecontext.h> #include <designmodecontext.h>
#include <rewritertransaction.h>
#include <modelnode.h> #include <modelnode.h>
#include <itemlibraryinfo.h>
#include <metainfo.h>
#include <model.h> #include <model.h>
#include <QApplication>
#include <QDebug> #include <QDebug>
#include <QPair> #include <QPair>
#include <QString> #include <QString>
#include <QDir>
#include <QAction>
#include <QTimer> #include <QTimer>
#include <zoomaction.h> #include <zoomaction.h>
#include <nodeabstractproperty.h> #include <nodeabstractproperty.h>
#include <nodelistproperty.h> #include <nodelistproperty.h>
#include <commondefines.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
......
...@@ -32,13 +32,8 @@ ...@@ -32,13 +32,8 @@
#include "designersettings.h" #include "designersettings.h"
#include <QWheelEvent> #include <QWheelEvent>
#include <cmath>
#include <QCoreApplication>
#include <QPushButton>
#include <QFile>
#include <QVBoxLayout> #include <QVBoxLayout>
#include <QActionGroup> #include <QActionGroup>
#include <QGraphicsView>
#include <toolbox.h> #include <toolbox.h>
#include <zoomaction.h> #include <zoomaction.h>
#include <formeditorgraphicsview.h> #include <formeditorgraphicsview.h>
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
****************************************************************************/ ****************************************************************************/
#include "itemutilfunctions.h" #include "itemutilfunctions.h"
#include <formeditorscene.h>
#include <QRectF> #include <QRectF>
#include <QDebug> #include <QDebug>
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#define ITEMUTILFUNCTIONS_H #define ITEMUTILFUNCTIONS_H
#include <QRectF> #include <QRectF>
#include <QGraphicsItem>
#include "formeditoritem.h" #include "formeditoritem.h"
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#define LAYERITEM_H #define LAYERITEM_H
#include <QGraphicsObject> #include <QGraphicsObject>
#include <QWeakPointer>
namespace QmlDesigner { namespace QmlDesigner {
......
...@@ -28,19 +28,14 @@ ...@@ -28,19 +28,14 @@
****************************************************************************/ ****************************************************************************/
#include "movemanipulator.h" #include "movemanipulator.h"
#include "itemutilfunctions.h"
#include "layeritem.h" #include "layeritem.h"
#include "formeditoritem.h" #include "formeditoritem.h"
#include "formeditorscene.h" #include "formeditorscene.h"
#include <QPointF> #include <QPointF>
#include <QDebug> #include <QDebug>
#include <QColor>
#include <QPen>
#include <QApplication>
#include <limits> #include <limits>
#include <model.h>
#include <qmlanchors.h> #include <qmlanchors.h>
#include <nodemetainfo.h> #include <nodemetainfo.h>
#include <variantproperty.h> #include <variantproperty.h>
......
...@@ -32,12 +32,10 @@ ...@@ -32,12 +32,10 @@
#include <QWeakPointer> #include <QWeakPointer>
#include <QGraphicsItem> #include <QGraphicsItem>
#include <QGraphicsLineItem>
#include <QHash> #include <QHash>
#include <QPointF> #include <QPointF>
#include <QRectF> #include <QRectF>
#include "controlelement.h"
#include "formeditoritem.h" #include "formeditoritem.h"
#include "rewritertransaction.h" #include "rewritertransaction.h"
#include "snapper.h" #include "snapper.h"
......
...@@ -32,12 +32,9 @@ ...@@ -32,12 +32,9 @@
#include "formeditorscene.h" #include "formeditorscene.h"
#include "formeditorview.h" #include "formeditorview.h"
#include "formeditorwidget.h" #include "formeditorwidget.h"
#include "itemutilfunctions.h"
#include "resizehandleitem.h" #include "resizehandleitem.h"
#include "nodemetainfo.h"
#include <QApplication> #include <QApplication>
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QAction> #include <QAction>
......
...@@ -35,8 +35,6 @@ ...@@ -35,8 +35,6 @@
#include "selectionindicator.h" #include "selectionindicator.h"
#include "resizeindicator.h" #include "resizeindicator.h"
#include <QHash>
namespace QmlDesigner { namespace QmlDesigner {