ImageSettingsDialog is now a component in order to decrease startup time
orientationLock: PageOrientation.LockLandscape
+ property Item settingsDialog: null
+
function cameraError() {
mountProtector.unlock();
}
},
ToolIcon {
iconSource: "image://theme/icon-m-toolbar-view-menu-white"
- onClicked: imageSettingsDialog.open();
+ onClicked: openSettings();
}
]
}
- ImageSettingsDialog {
+ function openSettings() {
+ var roiEnabled = cam.roi.enabled;
+ cam.roi.enabled = false;
+
+ if (!settingsDialog) {
+ settingsDialog = imageSettingsDialog.createObject(page);
+ }
+
+ settingsDialog.open();
+
+ cam.roi.enabled = roiEnabled;
+ }
+
+ Component {
id: imageSettingsDialog
+
+ ImageSettingsDialog { }
}
}