QmlDesigner: Remove FormEditorView::nodeSlidedToIndex

It was not called any more.

Change-Id: I05c64f11fde09b1f115f6dd4fdfd1a98d3fe3b14
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
This commit is contained in:
Marco Bubke
2014-05-08 13:49:56 +02:00
parent f3833907df
commit 988d631fae
2 changed files with 0 additions and 16 deletions

View File

@@ -439,21 +439,6 @@ void FormEditorView::registerTool(AbstractCustomTool *tool)
m_customToolList.append(tool); m_customToolList.append(tool);
} }
void FormEditorView::nodeSlidedToIndex(const NodeListProperty &listProperty, int /*newIndex*/, int /*oldIndex*/)
{
QList<ModelNode> 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) void FormEditorView::auxiliaryDataChanged(const ModelNode &node, const PropertyName &name, const QVariant &data)
{ {
AbstractView::auxiliaryDataChanged(node, name, data); AbstractView::auxiliaryDataChanged(node, name, data);

View File

@@ -103,7 +103,6 @@ public:
void registerTool(AbstractCustomTool *tool); 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 auxiliaryDataChanged(const ModelNode &node, const PropertyName &name, const QVariant &data) QTC_OVERRIDE;
void instancesCompleted(const QVector<ModelNode> &completedNodeList) QTC_OVERRIDE; void instancesCompleted(const QVector<ModelNode> &completedNodeList) QTC_OVERRIDE;