Fixes for changing video resolution between 16:9 and 4:3
[harmattan/cameraplus] / qml / VideoResolutionSettings.qml
index 26d4eac..d6323c5 100644 (file)
@@ -28,14 +28,16 @@ Column {
 
     spacing: 10
 
+    visible: videoSettings.resolutions.count > 1
+
     SectionHeader {
         text: qsTr("Resolution")
     }
 
-    CameraButtonRow {
+    Row {
+        id: resoultionsRow
         width: parent.width
         enabled: camera ? camera.idle : false
-        exclusive: false
 
         Repeater {
             id: resolutions
@@ -43,10 +45,14 @@ Column {
             model: videoSettings.resolutions
 
             delegate: CameraButton {
-                font.capitalization: Font.Capitalize
+                width: resoultionsRow.width / resolutions.count
+                capitalize: true
                 text: qsTr("%1 %2").arg(resolutionName).arg(resolution)
                 checked: settings.videoResolution == resolutionName
-                onClicked: settings.videoResolution = resolutionName
+                onClicked: {
+                    settings.videoAspectRatio = resolutionAspectRatio
+                    settings.videoResolution = resolutionName
+                }
             }
         }
     }