aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Hartmann <thomas.hartmann@qt.io>2017-11-13 11:33:29 +0100
committerThomas Hartmann <thomas.hartmann@qt.io>2017-11-13 13:13:02 +0000
commit13948f102ca20ed86144834ee34b41880975c008 (patch)
treea7c17d3984da45522d24e98344e7a6d3ad4cadc6 /src
parent35717ea88e36c737f727f555cda0ebc35d575923 (diff)
QmlDesigner: Update id in selection indicator
If the id of a selected item is changed we have to update the selection indicator. Task-number: QTCREATORBUG-19267 Change-Id: I1f6b8f93fcf083972471837fd2837386adfabbad Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/qmldesigner/components/formeditor/formeditorview.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp b/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp
index 99dc162f18..1956dadb34 100644
--- a/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp
+++ b/src/plugins/qmldesigner/components/formeditor/formeditorview.cpp
@@ -291,9 +291,15 @@ void FormEditorView::nodeIdChanged(const ModelNode& node, const QString &/*newId
if (itemNode.isValid() && node.nodeSourceType() == ModelNode::NodeWithoutSource) {
FormEditorItem *item = m_scene->itemForQmlItemNode(itemNode);
- if (item)
+ if (item) {
+ if (node.isSelected()) {
+ m_currentTool->setItems(scene()->itemsForQmlItemNodes(toQmlItemNodeList(selectedModelNodes())));
+ m_scene->update();
+ }
item->update();
+ }
}
+
}
void FormEditorView::selectedNodesChanged(const QList<ModelNode> &selectedNodeList,