From 0a83cc4e88fa4df12dc60e26199889707c044a62 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Fri, 5 Jun 2020 12:05:18 +0300 Subject: [PATCH] QmlDesigner: Show the scene id in 3D edit view It's sometimes hard to tell which scene is shown in 3D edit view, so added the scene id to the upper left corner of the view. Task-number: QDS-2239 Change-Id: I5999e41c3f92028cd9a0f79ae0c8b72263d9ce42 Reviewed-by: Thomas Hartmann --- share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml b/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml index 92f0a1ddecf..22b8b0675aa 100644 --- a/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml +++ b/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml @@ -645,5 +645,15 @@ Item { editCameraCtrl: cameraControl selectedNode : viewRoot.selectedNodes.length ? selectionBoxes[0].model : null } + + Text { + id: sceneLabel + text: viewRoot.sceneId + anchors.top: parent.top + anchors.left: parent.left + anchors.margins: 4 + font.pixelSize: 14 + color: "white" + } } }