CameraToolIcon {
id: button
- iconId: settings.videoEvComp == 0 ? "icon-m-camera-manual-exposure" : ""
+ iconSource: settings.videoEvComp == 0 ? cameraTheme.cameraManualExposureIconId : ""
CameraLabel {
anchors.fill: parent
text: settings.videoEvComp == 0 ? "" : settings.videoEvComp.toFixed(1)
}
- property list<Item> items: [
+ property CameraToolBarTools tools: CameraToolBarTools {
CameraLabel {
height: parent ? parent.height : 0
text: qsTr("EV")
verticalAlignment: Text.AlignVCenter
- },
+ }
+
CameraSlider {
id: slider
- width: 500
orientation: Qt.Horizontal
minimumValue: cam ? cam.evComp.minimum : 0
maximumValue: cam ? cam.evComp.maximum : 0
onValueChanged: settings.videoEvComp = value.toFixed(1)
Component.onCompleted: { slider.value = settings.videoEvComp.toFixed(1) }
}
- ]
+
+ CameraToolIcon {
+ iconSource: cameraTheme.resetIconId
+ onClicked: slider.value = 0
+ }
+ }
}