4 changed files with 38 additions and 6 deletions
@ -0,0 +1,30 @@
@@ -0,0 +1,30 @@
|
||||
import QtQuick 2.5 |
||||
import QtQuick.Controls 1.2 |
||||
|
||||
import QGroundControl.FactSystem 1.0 |
||||
import QGroundControl.Palette 1.0 |
||||
import QGroundControl.Controls 1.0 |
||||
import QGroundControl.ScreenTools 1.0 |
||||
|
||||
Row { |
||||
spacing: ScreenTools.defaultFontPixelWidth |
||||
|
||||
property Fact fact: Fact { } |
||||
|
||||
Repeater { |
||||
model: fact.bitmaskStrings |
||||
|
||||
QGCCheckBox { |
||||
text: modelData |
||||
checked: fact.value & fact.bitmaskValues[index] |
||||
|
||||
onClicked: { |
||||
if (checked) { |
||||
fact.value |= fact.bitmaskValues[index] |
||||
} else { |
||||
fact.value &= ~fact.bitmaskValues[index] |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
@ -1,7 +1,8 @@
@@ -1,7 +1,8 @@
|
||||
Module QGroundControl.FactControls |
||||
|
||||
FactPanel 1.0 FactPanel.qml |
||||
FactLabel 1.0 FactLabel.qml |
||||
FactTextField 1.0 FactTextField.qml |
||||
FactCheckBox 1.0 FactCheckBox.qml |
||||
FactComboBox 1.0 FactComboBox.qml |
||||
FactBitmask 1.0 FactBitmask.qml |
||||
FactCheckBox 1.0 FactCheckBox.qml |
||||
FactComboBox 1.0 FactComboBox.qml |
||||
FactLabel 1.0 FactLabel.qml |
||||
FactPanel 1.0 FactPanel.qml |
||||
FactTextField 1.0 FactTextField.qml |
||||
|
Loading…
Reference in new issue