Commit f7d6c069 authored by Don Gagne's avatar Don Gagne

parent 220b329c
...@@ -34,6 +34,8 @@ Column { ...@@ -34,6 +34,8 @@ Column {
property real _margins: ScreenTools.defaultFontPixelHeight property real _margins: ScreenTools.defaultFontPixelHeight
property bool _loadComplete: false property bool _loadComplete: false
Component.onCompleted: _loadComplete = true
FactPanelController { FactPanelController {
id: controller id: controller
factPanel: qgcViewPanel factPanel: qgcViewPanel
...@@ -71,10 +73,22 @@ Column { ...@@ -71,10 +73,22 @@ Column {
font.family: ScreenTools.demiboldFontFamily font.family: ScreenTools.demiboldFontFamily
} }
FactValueSlider { Slider {
digitCount: fact.maxString.length anchors.left: parent.left
incrementSlots: 3 anchors.right: parent.right
fact: controller.getParameterFact(-1, param) minimumValue: min
maximumValue: max
stepSize: step
tickmarksEnabled: true
value: _fact.value
property Fact _fact: controller.getParameterFact(-1, param)
onValueChanged: {
if (_loadComplete) {
_fact.value = value
}
}
} }
QGCLabel { QGCLabel {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment