aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qmlpuppetcommunication
diff options
context:
space:
mode:
authorMiikka Heikkinen <[email protected]>2024-03-01 15:41:19 +0200
committerMiikka Heikkinen <[email protected]>2024-03-07 10:37:26 +0000
commit74761b0e64542b9b032d48fca8be132895acb743 (patch)
tree0590b2b1d9aba17359d8844607ba7e691f92452f /src/libs/qmlpuppetcommunication
parentaf9ce822459c798bc7a151c2b84ccf3d41dec433 (diff)
QmlDesigner: Add fly mode for 3D view
You can now activate fly mode in 3D view by pressing right mouse button. In fly mode, cursor is hidden and mouse controls edit camera rotation directly, and WASDQE can be used to move the camera around. Fixes: QDS-12030 Change-Id: I52550502632af19de36a1557d9aac84ff3cb18cc Reviewed-by: Mahmoud Badri <[email protected]> Reviewed-by: Qt CI Patch Build Bot <[email protected]>
Diffstat (limited to 'src/libs/qmlpuppetcommunication')
-rw-r--r--src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h b/src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h
index d5a715f1d86..56a2796de09 100644
--- a/src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h
+++ b/src/libs/qmlpuppetcommunication/interfaces/nodeinstanceglobal.h
@@ -49,7 +49,11 @@ enum class View3DActionType {
SetBakeLightsView3D,
SplitViewToggle,
MaterialOverride,
- ShowWireframe
+ ShowWireframe,
+ FlyModeToggle,
+ EditCameraRotation,
+ EditCameraMove,
+ EditCameraStopAllMoves
};
constexpr bool isNanotraceEnabled()