[ui] Rename general and UI settings components

This commit is contained in:
Candice Bentéjac 2024-09-03 10:51:49 +01:00
parent d1b728c68b
commit d89aec0250
3 changed files with 11 additions and 11 deletions

View file

@ -21,7 +21,7 @@ Page {
property alias unsavedDialog: unsavedDialog property alias unsavedDialog: unsavedDialog
Settings { Settings {
id: settings_UILayout id: settingsUILayout
category: 'UILayout' category: 'UILayout'
property alias showLiveReconstruction: liveSfMVisibilityCB.checked property alias showLiveReconstruction: liveSfMVisibilityCB.checked
property alias showGraphEditor: graphEditorVisibilityCB.checked property alias showGraphEditor: graphEditorVisibilityCB.checked
@ -1054,7 +1054,7 @@ Page {
orientation: Qt.Horizontal orientation: Qt.Horizontal
width: parent.width width: parent.width
height: Math.round(parent.height * 0.3) height: Math.round(parent.height * 0.3)
visible: settings_UILayout.showGraphEditor visible: settingsUILayout.showGraphEditor
TabPanel { TabPanel {
id: graphEditorPanel id: graphEditorPanel

View file

@ -93,7 +93,7 @@ Item {
} }
} }
LiveSfmView { LiveSfmView {
visible: settings_UILayout.showLiveReconstruction visible: settingsUILayout.showLiveReconstruction
reconstruction: root.reconstruction reconstruction: root.reconstruction
Layout.fillWidth: true Layout.fillWidth: true
Layout.preferredHeight: childrenRect.height Layout.preferredHeight: childrenRect.height
@ -102,7 +102,7 @@ Item {
Panel { Panel {
title: "Image Viewer" title: "Image Viewer"
visible: settings_UILayout.showImageViewer visible: settingsUILayout.showImageViewer
implicitWidth: Math.round(parent.width * 0.35) implicitWidth: Math.round(parent.width * 0.35)
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: true Layout.fillWidth: true
@ -187,7 +187,7 @@ Item {
} }
Item { Item {
visible: settings_UILayout.showViewer3D visible: settingsUILayout.showViewer3D
Layout.minimumWidth: 20 Layout.minimumWidth: 20
Layout.minimumHeight: 80 Layout.minimumHeight: 80
Layout.fillHeight: true Layout.fillHeight: true
@ -195,7 +195,7 @@ Item {
Loader { Loader {
id: panel3dViewerLoader id: panel3dViewerLoader
active: settings_UILayout.showViewer3D active: settingsUILayout.showViewer3D
visible: active visible: active
anchors.fill: parent anchors.fill: parent
sourceComponent: panel3dViewerComponent sourceComponent: panel3dViewerComponent

View file

@ -8,8 +8,8 @@ import Qt.labs.settings 1.0
ApplicationWindow { ApplicationWindow {
id: _window id: _window
width: settings_General.windowWidth width: settingsGeneral.windowWidth
height: settings_General.windowHeight height: settingsGeneral.windowHeight
minimumWidth: 650 minimumWidth: 650
minimumHeight: 500 minimumHeight: 500
visible: true visible: true
@ -62,7 +62,7 @@ ApplicationWindow {
SystemPalette { id: disabledPalette; colorGroup: SystemPalette.Disabled } SystemPalette { id: disabledPalette; colorGroup: SystemPalette.Disabled }
Settings { Settings {
id: settings_General id: settingsGeneral
category: 'General' category: 'General'
property int windowWidth: 1280 property int windowWidth: 1280
property int windowHeight: 720 property int windowHeight: 720
@ -70,8 +70,8 @@ ApplicationWindow {
Component.onDestruction: { Component.onDestruction: {
// Store main window dimensions in persisting Settings // Store main window dimensions in persisting Settings
settings_General.windowWidth = _window.width settingsGeneral.windowWidth = _window.width
settings_General.windowHeight = _window.height settingsGeneral.windowHeight = _window.height
} }
// Check if document has been saved // Check if document has been saved