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
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
+ }
}
}
}