import CameraPlus 1.0
// TODO: flash not ready (battery low or flash not ready message)
-// TODO: front camera night mode
CameraPage {
id: root
pipelineManager.startCamera()
}
}
+
+ onImageAspectRatioChanged: {
+ if (!root.deviceChangeInProgress) {
+ imageSettings.setImageResolution()
+ }
+ }
+
+ onImageResolutionChanged: {
+ if (!root.deviceChangeInProgress) {
+ imageSettings.setImageResolution()
+ }
+ }
+
+ onVideoResolutionChanged: {
+ if (!root.deviceChangeInProgress) {
+ videoSettings.setVideoResolution()
+ }
+ }
+
+ onVideoAspectRatioChanged: {
+ if (!root.deviceChangeInProgress) {
+ videoSettings.setVideoResolution()
+ }
+ }
}
PipelineManager {
return false
}
+ if (mode == Camera.ImageMode) {
+ imageSettings.setImageResolution()
+ }
+ else if (mode == Camera.VideoMode) {
+ videoSettings.setVideoResolution()
+ }
+
return true
}
imagePath: platformSettings.imagePath
videoPath: platformSettings.videoPath
temporaryVideoPath: platformSettings.temporaryVideoPath
+ settings: settings
}
MountProtector {
showError(qsTr("Failed to set required resolution"))
}
}
-
- onReadyChanged: {
- if (ready) {
- imageSettings.setImageResolution()
- }
- }
}
VideoSettings {
showError(qsTr("Failed to set required resolution"))
}
}
-
- onReadyChanged: {
- if (ready) {
- videoSettings.setVideoResolution()
- }
- }
- }
-
- Connections {
- target: settings
-
- onImageAspectRatioChanged: {
- imageSettings.setImageResolution()
- }
-
- onImageResolutionChanged: {
- imageSettings.setImageResolution()
- }
-
- onVideoResolutionChanged: {
- videoSettings.setVideoResolution()
- }
}
ModeController {