summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/components/formeditor/dragtool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/components/formeditor/dragtool.cpp')
-rw-r--r--src/plugins/qmldesigner/components/formeditor/dragtool.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/qmldesigner/components/formeditor/dragtool.cpp b/src/plugins/qmldesigner/components/formeditor/dragtool.cpp
index 93f665dfb0..b7a5ff220c 100644
--- a/src/plugins/qmldesigner/components/formeditor/dragtool.cpp
+++ b/src/plugins/qmldesigner/components/formeditor/dragtool.cpp
@@ -234,11 +234,9 @@ void DragTool::dropEvent(const QList<QGraphicsItem*> &/*itemList*/, QGraphicsSce
m_rewriterTransaction.commit();
- if (m_dragNode.isValid()) {
- QList<QmlItemNode> nodeList;
- nodeList.append(m_dragNode);
- view()->setSelectedModelNodes(toModelNodeList(nodeList));
- }
+ if (m_dragNode.isValid())
+ view()->setSelectedModelNode(m_dragNode);
+
m_dragNode = QmlItemNode();
@@ -286,7 +284,6 @@ void DragTool::dragLeaveEvent(const QList<QGraphicsItem*> &/*itemList*/, QGraphi
m_rewriterTransaction.commit();
- view()->clearSelectedModelNodes();
view()->changeToSelectionTool();
}
}