import com.nokia.meego 1.1
Column {
- spacing: 10
+ spacing: 10
- SectionHeader {
- text: qsTr("Aspect ratio");
- }
+ SectionHeader {
+ text: qsTr("Aspect ratio")
+ }
- ButtonRow {
- id: aspectRatioRow
- width: parent.width
- enabled: cam.idle
- exclusive: false
+ ButtonRow {
+ id: aspectRatioRow
+ width: parent.width
+ enabled: cam.idle
+ exclusive: false
- Repeater {
- model: imageSettings.aspectRatios
- delegate: Button {
- text: qsTr(modelData);
- checked: settings.imageAspectRatio == modelData;
- onClicked: settings.imageAspectRatio = modelData;
- }
- }
+ Repeater {
+ model: imageSettings.aspectRatios
+ delegate: Button {
+ text: qsTr(modelData)
+ checked: settings.imageAspectRatio == modelData
+ onClicked: settings.imageAspectRatio = modelData
+ }
}
+ }
- SectionHeader {
- text: qsTr("Resolution");
- }
+ SectionHeader {
+ text: qsTr("Resolution")
+ }
- ButtonRow {
- id: resolutionsRow
- width: parent.width
- enabled: cam.idle
- exclusive: false
+ ButtonRow {
+ id: resolutionsRow
+ width: parent.width
+ enabled: cam.idle
+ exclusive: false
- Binding {
- target: imageSettings.resolutions
- property: "aspectRatio"
- value: settings.imageAspectRatio
- }
+ Binding {
+ target: imageSettings.resolutions
+ property: "aspectRatio"
+ value: settings.imageAspectRatio
+ }
- Repeater {
- id: resolutions
- model: imageSettings.resolutions.aspectRatio == settings.imageAspectRatio ? imageSettings.resolutions : undefined
+ Repeater {
+ id: resolutions
+ model: imageSettings.resolutions.aspectRatio == settings.imageAspectRatio ?
+ imageSettings.resolutions : undefined
- delegate: Button {
- font.capitalization: Font.Capitalize
- text: qsTr("%1 %2 Mpx").arg(resolutionName).arg(megaPixels);
- checked: settings.imageResolution == resolutionName
- onClicked: settings.imageResolution = resolutionName;
- }
- }
+ delegate: Button {
+ font.capitalization: Font.Capitalize
+ text: qsTr("%1 %2 Mpx").arg(resolutionName).arg(megaPixels)
+ checked: settings.imageResolution == resolutionName
+ onClicked: settings.imageResolution = resolutionName
+ }
}
+ }
}