summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2019-11-25 17:24:59 +0200
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2019-11-26 10:37:01 +0000
commit05bb285b0d528c7dd57bd7405e3010d7bdbd625c (patch)
tree471baea892627cef08a2ebec4673bab7536d75a1
parentd076c59429e2898f7d88699ed733ec0c3b2d66b6 (diff)
downloadqt-creator-05bb285b0d528c7dd57bd7405e3010d7bdbd625c.tar.gz
QmlDesigner: Offset move/scale gizmo label in screen space
Offsetting in scene space resulted in label being inconsistent distance away from the object, depending on zoom and angle. Change-Id: Ief555de664c042bb1a5c93af0ee7e5a1c3e7ce0a Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
-rw-r--r--share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml b/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml
index 1e17ccd7f9..837a01f414 100644
--- a/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml
+++ b/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml
@@ -257,13 +257,12 @@ Window {
id: gizmoLabel
targetNode: moveGizmo.visible ? moveGizmo : scaleGizmo
targetView: overlayView
- offset: Qt.vector3d(0, 45, 0)
visible: targetNode.dragging
Rectangle {
color: "white"
x: -width / 2
- y: -height
+ y: -height - 8
width: gizmoLabelText.width + 4
height: gizmoLabelText.height + 4
border.width: 1