Commit f7d6c069 authored by Don Gagne's avatar Don Gagne

parent 220b329c
......@@ -34,6 +34,8 @@ Column {
property real _margins: ScreenTools.defaultFontPixelHeight
property bool _loadComplete: false
Component.onCompleted: _loadComplete = true
FactPanelController {
id: controller
factPanel: qgcViewPanel
......@@ -71,10 +73,22 @@ Column {
font.family: ScreenTools.demiboldFontFamily
}
FactValueSlider {
digitCount: fact.maxString.length
incrementSlots: 3
fact: controller.getParameterFact(-1, param)
Slider {
anchors.left: parent.left
anchors.right: parent.right
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 {
......
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