forked from qt-creator/qt-creator
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:
@@ -439,21 +439,6 @@ void FormEditorView::registerTool(AbstractCustomTool *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)
|
||||
{
|
||||
AbstractView::auxiliaryDataChanged(node, name, data);
|
||||
|
||||
@@ -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<ModelNode> &completedNodeList) QTC_OVERRIDE;
|
||||
|
||||
Reference in New Issue
Block a user