- delegate: Button {
- property string resolution: resolutionName
- property string aspectRatio: resolutionAspectRatio
- font.capitalization: Font.Capitalize
- text: qsTr("%1 %2 Mpx").arg(resolutionName).arg(megaPixels);
- checked: settings.imageResolution == resolutionName
- onClicked: Util.setResolution(resolutionName);
- }
- }
+ delegate: CameraButton {
+ width: resolutionsRow.width / resolutions.count
+ capitalize: true
+ text: qsTr("%1 %2 Mpx").arg(resolutionName).arg(megaPixels)
+ checked: settings.imageResolution == resolutionName
+ onClicked: settings.imageResolution = resolutionName
+ }