summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-05-24 15:17:06 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-06-01 12:05:08 +0000
commit87dbb54653611da2fc353f014c607727628a6409 (patch)
treeac70efc8ad2eef408896d5e408fc644fa65137b1
parentb9ad88ce3de85adfa5223f0cefb0dad745d914c9 (diff)
declarative-camera: Fit camera output to window on desktop as well
It's no different from the mobile modes. Change-Id: I21a00b63b816e9a2e0b75f96e75007549a2cb8d0 Reviewed-by: Samuel Mira <samuel.mira@qt.io> Reviewed-by: Artem Dyomin <artem.dyomin@qt.io> Reviewed-by: Lars Knoll <lars@knoll.priv.no> Reviewed-by: Pavel Dubsky <pavel.dubsky@qt.io> Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io> (cherry picked from commit 8b9a271ddd6c1b0621d2f4f8577bcc1db205dd79) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--examples/multimedia/declarative-camera/declarative-camera.qml6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/multimedia/declarative-camera/declarative-camera.qml b/examples/multimedia/declarative-camera/declarative-camera.qml
index 552369862..ce827d80a 100644
--- a/examples/multimedia/declarative-camera/declarative-camera.qml
+++ b/examples/multimedia/declarative-camera/declarative-camera.qml
@@ -104,11 +104,7 @@ Rectangle {
VideoOutput {
id: viewfinder
visible: ((cameraUI.state === "PhotoCapture") || (cameraUI.state === "VideoCapture"))
-
- x: 0
- y: 0
- width: ((stillControls.state === "MobilePortrait") ? parent.width : (parent.width-buttonsPanelLandscapeWidth))
- height: ((stillControls.state === "MobilePortrait") ? parent.height - buttonsPanelPortraitHeight : parent.height)
+ anchors.fill: parent
// autoOrientation: true
}