4 changed files with 56 additions and 6 deletions
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
import QtQuick 2.2 |
||||
import QtQuick.Layouts 1.2 |
||||
|
||||
import QGroundControl.FactSystem 1.0 |
||||
import QGroundControl.Controls 1.0 |
||||
|
||||
GridLayout { |
||||
property var factList ///< List of Facts to show |
||||
|
||||
rows: factList.length |
||||
flow: GridLayout.TopToBottom |
||||
|
||||
Repeater { |
||||
model: parent.factList |
||||
|
||||
QGCLabel { text: modelData.name + ":" } |
||||
} |
||||
|
||||
Repeater { |
||||
model: parent.factList |
||||
|
||||
FactTextField { |
||||
Layout.fillWidth: true |
||||
fact: modelData |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,19 @@
@@ -0,0 +1,19 @@
|
||||
import QtQuick 2.2 |
||||
import QtQuick.Layouts 1.2 |
||||
|
||||
import QGroundControl.FactSystem 1.0 |
||||
import QGroundControl.Controls 1.0 |
||||
|
||||
RowLayout { |
||||
property var fact: Fact { } |
||||
|
||||
QGCLabel { |
||||
text: fact.name + ":" |
||||
} |
||||
|
||||
FactTextField { |
||||
Layout.fillWidth: true |
||||
showUnits: true |
||||
fact: parent.fact |
||||
} |
||||
} |
@ -1,8 +1,10 @@
@@ -1,8 +1,10 @@
|
||||
Module QGroundControl.FactControls |
||||
|
||||
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 |
||||
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 |
||||
FactTextFieldGrid 1.0 FactTextFieldGrid.qml |
||||
FactTextFieldRow 1.0 FactTextFieldRow.qml |
||||
|
Loading…
Reference in new issue