diff --git a/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp b/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp index bc986805453..15190aa7a5d 100644 --- a/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp +++ b/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp @@ -439,21 +439,6 @@ void FormEditorView::registerTool(AbstractCustomTool *tool) m_customToolList.append(tool); } -void FormEditorView::nodeSlidedToIndex(const NodeListProperty &listProperty, int /*newIndex*/, int /*oldIndex*/) -{ - QList newOrderModelNodeList = listProperty.toModelNodeList(); - foreach (const ModelNode &node, newOrderModelNodeList) { - FormEditorItem *item = m_scene->itemForQmlItemNode(QmlItemNode(node)); - if (item) { - FormEditorItem *oldParentItem = item->parentItem(); - item->setParentItem(0); - item->setParentItem(oldParentItem); - } - } - - m_currentTool->formEditorItemsChanged(scene()->allFormEditorItems()); -} - void FormEditorView::auxiliaryDataChanged(const ModelNode &node, const PropertyName &name, const QVariant &data) { AbstractView::auxiliaryDataChanged(node, name, data); diff --git a/src/plugins/qmldesigner/components/formeditor/formeditorview.h b/src/plugins/qmldesigner/components/formeditor/formeditorview.h index 97710f8ce9d..81095065341 100644 --- a/src/plugins/qmldesigner/components/formeditor/formeditorview.h +++ b/src/plugins/qmldesigner/components/formeditor/formeditorview.h @@ -103,7 +103,6 @@ public: void registerTool(AbstractCustomTool *tool); - void nodeSlidedToIndex(const NodeListProperty &listProperty, int newIndex, int oldIndex); void auxiliaryDataChanged(const ModelNode &node, const PropertyName &name, const QVariant &data) QTC_OVERRIDE; void instancesCompleted(const QVector &completedNodeList) QTC_OVERRIDE;