From 225e2ae02eaf3327e8923cdc6d6719a689cfa1b3 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 16 Jul 2015 13:49:26 +0200 Subject: QmlDesigner: Cleanup DesignDocumentView Change-Id: I64ebe10542957f812b86a998e922a24111ad4f99 Reviewed-by: Tim Jenssen --- .../components/integration/designdocumentview.cpp | 80 ---------------------- .../components/integration/designdocumentview.h | 41 ----------- 2 files changed, 121 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/qmldesigner/components/integration/designdocumentview.cpp b/src/plugins/qmldesigner/components/integration/designdocumentview.cpp index b7e0189299..9217f90884 100644 --- a/src/plugins/qmldesigner/components/integration/designdocumentview.cpp +++ b/src/plugins/qmldesigner/components/integration/designdocumentview.cpp @@ -49,86 +49,6 @@ DesignDocumentView::~DesignDocumentView() { } -void DesignDocumentView::nodeCreated(const ModelNode & /*createdNode*/) {} -void DesignDocumentView::nodeAboutToBeRemoved(const ModelNode & /*removedNode*/) {} -void DesignDocumentView::nodeRemoved(const ModelNode & /*removedNode*/, const NodeAbstractProperty & /*parentProperty*/, AbstractView::PropertyChangeFlags /*propertyChange*/) {} -void DesignDocumentView::nodeAboutToBeReparented(const ModelNode & /*node*/, const NodeAbstractProperty & /*newPropertyParent*/, const NodeAbstractProperty & /*oldPropertyParent*/, AbstractView::PropertyChangeFlags /*propertyChange*/) {} -void DesignDocumentView::nodeReparented(const ModelNode & /*node*/, const NodeAbstractProperty & /*newPropertyParent*/, const NodeAbstractProperty & /*oldPropertyParent*/, AbstractView::PropertyChangeFlags /*propertyChange*/) {} -void DesignDocumentView::nodeIdChanged(const ModelNode& /*node*/, const QString& /*newId*/, const QString& /*oldId*/) {} -void DesignDocumentView::propertiesAboutToBeRemoved(const QList& /*propertyList*/) {} -void DesignDocumentView::propertiesRemoved(const QList& /*propertyList*/) {} -void DesignDocumentView::variantPropertiesChanged(const QList& /*propertyList*/, AbstractView::PropertyChangeFlags /*propertyChange*/) {} -void DesignDocumentView::bindingPropertiesChanged(const QList& /*propertyList*/, AbstractView::PropertyChangeFlags /*propertyChange*/) {} -void DesignDocumentView::signalHandlerPropertiesChanged(const QVector & /*propertyList*/, - AbstractView::PropertyChangeFlags /*propertyChange*/) -{} -void DesignDocumentView::rootNodeTypeChanged(const QString & /*type*/, int /*majorVersion*/, int /*minorVersion*/) {} - -void DesignDocumentView::selectedNodesChanged(const QList & /*selectedNodeList*/, - const QList & /*lastSelectedNodeList*/) {} - -void DesignDocumentView::nodeOrderChanged(const NodeListProperty & /*listProperty*/, const ModelNode & /*movedNode*/, int /*oldIndex*/) {} - -void DesignDocumentView::scriptFunctionsChanged(const ModelNode &/*node*/, const QStringList &/*scriptFunctionList*/) -{ -} - -void DesignDocumentView::instancePropertyChange(const QList > &/*propertyList*/) -{ -} - -void DesignDocumentView::instancesCompleted(const QVector &/*completedNodeList*/) -{ - -} -void DesignDocumentView::instanceInformationsChange(const QMultiHash &/*informationChangeHash*/) -{ - -} - -void DesignDocumentView::instancesRenderImageChanged(const QVector &/*nodeList*/) -{ - -} - -void DesignDocumentView::instancesPreviewImageChanged(const QVector &/*nodeList*/) -{ - -} - -void DesignDocumentView::instancesChildrenChanged(const QVector &/*nodeList*/) -{ - -} - -void DesignDocumentView::instancesToken(const QString &/*tokenName*/, int /*tokenNumber*/, const QVector &/*nodeVector*/) -{ - -} - -void DesignDocumentView::nodeSourceChanged(const ModelNode &, const QString & /*newNodeSource*/) -{ - -} - -void DesignDocumentView::rewriterBeginTransaction() -{ - -} - -void DesignDocumentView::rewriterEndTransaction() -{ -} - -void DesignDocumentView::currentStateChanged(const ModelNode &/*node*/) -{ -} - -void DesignDocumentView::importsChanged(const QList &/*addedImports*/, const QList &/*removedImports*/) -{ - -} - static QStringList arrayToStringList(const QByteArray &byteArray) { QString str(QString::fromUtf8(byteArray)); diff --git a/src/plugins/qmldesigner/components/integration/designdocumentview.h b/src/plugins/qmldesigner/components/integration/designdocumentview.h index 20ac42191b..4af84e64a1 100644 --- a/src/plugins/qmldesigner/components/integration/designdocumentview.h +++ b/src/plugins/qmldesigner/components/integration/designdocumentview.h @@ -43,47 +43,6 @@ public: DesignDocumentView(QObject *parent = 0); ~DesignDocumentView(); - virtual void nodeCreated(const ModelNode &createdNode) override; - virtual void nodeAboutToBeRemoved(const ModelNode &removedNode) override; - virtual void nodeRemoved(const ModelNode &removedNode, const NodeAbstractProperty &parentProperty, PropertyChangeFlags propertyChange) override; - virtual void nodeAboutToBeReparented(const ModelNode &node, - const NodeAbstractProperty &newPropertyParent, - const NodeAbstractProperty &oldPropertyParent, - AbstractView::PropertyChangeFlags propertyChange) override; - virtual void nodeReparented(const ModelNode &node, - const NodeAbstractProperty &newPropertyParent, - const NodeAbstractProperty &oldPropertyParent, - AbstractView::PropertyChangeFlags propertyChange) override; - virtual void nodeIdChanged(const ModelNode& node, const QString& newId, const QString& oldId) override; - virtual void propertiesAboutToBeRemoved(const QList& propertyList) override; - virtual void propertiesRemoved(const QList& propertyList) override; - virtual void variantPropertiesChanged(const QList& propertyList, PropertyChangeFlags propertyChange) override; - virtual void bindingPropertiesChanged(const QList& propertyList, PropertyChangeFlags propertyChange) override; - virtual void signalHandlerPropertiesChanged(const QVector& propertyList, PropertyChangeFlags propertyChange) override; - virtual void rootNodeTypeChanged(const QString &type, int majorVersion, int minorVersion) override; - - virtual void selectedNodesChanged(const QList &selectedNodeList, - const QList &lastSelectedNodeList) override; - - virtual void nodeOrderChanged(const NodeListProperty &listProperty, const ModelNode &movedNode, int oldIndex) override; - virtual void scriptFunctionsChanged(const ModelNode &node, const QStringList &scriptFunctionList) override; - void instancePropertyChange(const QList > &propertyList) override; - void instancesCompleted(const QVector &completedNodeList) override; - void instanceInformationsChange(const QMultiHash &informationChangeHash) override; - void instancesRenderImageChanged(const QVector &nodeList) override; - void instancesPreviewImageChanged(const QVector &nodeList) override; - void instancesChildrenChanged(const QVector &nodeList) override; - void instancesToken(const QString &tokenName, int tokenNumber, const QVector &nodeVector) override; - - void nodeSourceChanged(const ModelNode &modelNode, const QString &newNodeSource) override; - - void rewriterBeginTransaction(); - void rewriterEndTransaction(); - - void currentStateChanged(const ModelNode &node) override; - - void importsChanged(const QList &addedImports, const QList &removedImports) override; - ModelNode insertModel(const ModelNode &modelNode) { return m_modelMerger.insertModel(modelNode); } void replaceModel(const ModelNode &modelNode) -- cgit v1.2.1