X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=qml%2FImageResolutionSettings.qml;h=3f8b5c06be1faff4f44ee1096feec5ab4c9c0c43;hb=4c3b8980bafd3d1607ebec45556ef3f49db955b5;hp=e287394fa6a174b1ac88bdbaafb0f57ffbd3a965;hpb=4fe9fdd5913fc545857582451d638988dc233fc2;p=harmattan%2Fcameraplus diff --git a/qml/ImageResolutionSettings.qml b/qml/ImageResolutionSettings.qml index e287394..3f8b5c0 100644 --- a/qml/ImageResolutionSettings.qml +++ b/qml/ImageResolutionSettings.qml @@ -30,6 +30,7 @@ Column { SectionHeader { text: qsTr("Aspect ratio") + visible: aspectRatioRow.visible } CameraButtonRow { @@ -37,8 +38,10 @@ Column { width: parent.width enabled: camera ? camera.idle : false exclusive: false + visible: imageSettings.aspectRatioCount > 1 Repeater { + id: aspectRatios model: imageSettings.aspectRatios delegate: CameraButton { text: qsTr(modelData) @@ -50,6 +53,7 @@ Column { SectionHeader { text: qsTr("Resolution") + visible: resolutionsRow.visible } CameraButtonRow { @@ -57,6 +61,7 @@ Column { width: parent.width enabled: camera ? camera.idle : false exclusive: false + visible: imageSettings.resolutions.count > 1 Binding { target: imageSettings.resolutions @@ -70,7 +75,7 @@ Column { imageSettings.resolutions : undefined delegate: CameraButton { - font.capitalization: Font.Capitalize + capitalize: true text: qsTr("%1 %2 Mpx").arg(resolutionName).arg(megaPixels) checked: settings.imageResolution == resolutionName onClicked: settings.imageResolution = resolutionName