5import QGroundControl.Controls
6import QGroundControl.FactControls
9 property string label: fact ? fact.shortDescription : ""
10 property alias fact: _factTextField.fact
11 property real textFieldPreferredWidth: -1
12 property alias textFieldUnitsLabel: _factTextField.unitsLabel
13 property alias textFieldShowUnits: _factTextField.showUnits
14 property alias textFieldShowHelp: _factTextField.showHelp
15 property alias textField: _factTextField
16 property bool vertical: false ///< true: label above the text field
18 columns: vertical ? 1 : 2
19 columnSpacing: ScreenTools.defaultFontPixelWidth * 2
23 Layout.fillWidth: !vertical
24 Layout.minimumWidth: implicitWidth
31 Layout.preferredWidth: textFieldPreferredWidth