5import QGroundControl.Controls
7// A USB camera setting set with a slider, over the range the camera offers, with the value shown beside it.
11 required property Fact setting
12 property real from: root.setting.min
13 property real to: root.setting.max
14 property real stepSize: 0.1
15 property string valueText: root.setting.valueString + (root.setting.units ? " " + root.setting.units : "")
17 spacing: ScreenTools.defaultFontPixelWidth * 2
20 text: root.setting.label
21 Layout.fillWidth: true
29 stepSize: root.stepSize
30 Layout.preferredWidth: ScreenTools.defaultFontPixelWidth * 20
31 onMoved: root.setting.rawValue = slider.value
34 value: root.setting.rawValue
36 restoreMode: Binding.RestoreNone
42 horizontalAlignment: Text.AlignRight
43 Layout.minimumWidth: ScreenTools.defaultFontPixelWidth * 7