|
|
@ -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 { |
|
|
|
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 { |
|
|
|