diff options
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet/mockfiles/qt6/EditView3D.qml')
-rw-r--r-- | share/qtcreator/qml/qmlpuppet/mockfiles/qt6/EditView3D.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/mockfiles/qt6/EditView3D.qml b/share/qtcreator/qml/qmlpuppet/mockfiles/qt6/EditView3D.qml index a3f14e9d113..721e74ac303 100644 --- a/share/qtcreator/qml/qmlpuppet/mockfiles/qt6/EditView3D.qml +++ b/share/qtcreator/qml/qmlpuppet/mockfiles/qt6/EditView3D.qml @@ -49,6 +49,7 @@ Item { property color backgroundGradientColorStart: "#222222" property color backgroundGradientColorEnd: "#999999" property color gridColor: "#aaaaaa" + property bool syncBackgroundColor: false enum SelectionMode { Item, Group } enum TransformMode { Move, Rotate, Scale } @@ -79,6 +80,7 @@ Item { onShowEditLightChanged: _generalHelper.storeToolState(sceneId, "showEditLight", showEditLight) onGlobalOrientationChanged: _generalHelper.storeToolState(sceneId, "globalOrientation", globalOrientation) onShowGridChanged: _generalHelper.storeToolState(sceneId, "showGrid", showGrid); + onSyncBackgroundColorChanged: _generalHelper.storeToolState(sceneId, "syncBackgroundColor", syncBackgroundColor); onShowSelectionBoxChanged: _generalHelper.storeToolState(sceneId, "showSelectionBox", showSelectionBox); onShowIconGizmoChanged: _generalHelper.storeToolState(sceneId, "showIconGizmo", showIconGizmo); onShowCameraFrustumChanged: _generalHelper.storeToolState(sceneId, "showCameraFrustum", showCameraFrustum); @@ -243,6 +245,16 @@ Item { else if (resetToDefault) showGrid = true; + if ("syncBackgroundColor" in toolStates) { + syncBackgroundColor = toolStates.syncBackgroundColor; + if (syncBackgroundColor) { + var color = _generalHelper.sceneEnvironmentColor(sceneId); + updateViewStates({"selectBackgroundColor": color}) + } + } else if (resetToDefault) { + syncBackgroundColor = false; + } + if ("showSelectionBox" in toolStates) showSelectionBox = toolStates.showSelectionBox; else if (resetToDefault) @@ -293,6 +305,7 @@ Item { { _generalHelper.storeToolState(sceneId, "showEditLight", showEditLight) _generalHelper.storeToolState(sceneId, "showGrid", showGrid) + _generalHelper.storeToolState(sceneId, "syncBackgroundColor", syncBackgroundColor) _generalHelper.storeToolState(sceneId, "showSelectionBox", showSelectionBox) _generalHelper.storeToolState(sceneId, "showIconGizmo", showIconGizmo) _generalHelper.storeToolState(sceneId, "showCameraFrustum", showCameraFrustum) |