Commit d58b6cc4 authored by Valentin Platzgummer's avatar Valentin Platzgummer

WimaItemEditor FactTextField problem

parent b6bee338
......@@ -6,14 +6,14 @@
"units": "m",
"min": 1,
"decimalPlaces": 2,
"defaultValue": 50
"defaultValue": 10
},
{
"name": "NumberOfLayers",
"shortDescription": "The number of layers.",
"type": "uint32",
"min": 1,
"defaultValue": 10
"defaultValue": 1
},
{
"name": "LayerDistance",
......@@ -22,7 +22,7 @@
"units": "m",
"min": 0,
"decimalPlaces": 2,
"defaultValue": 10
"defaultValue": 2
},
{
"name": "BorderPolygonOffset",
......
#include "WimaGOperationArea.h"
const char* WimaGOperationArea::settingsGroup = "OperatingArea";
const char* WimaGOperationArea::settingsGroup = "OperationArea";
const char* WimaGOperationArea::bottomLayerAltitudeName = "BottomLayerAltitude";
const char* WimaGOperationArea::numberOfLayersName = "NumberOfLayers";
const char* WimaGOperationArea::layerDistanceName = "LayerDistance";
......
......@@ -67,7 +67,7 @@ Rectangle {
spacing: _margin
SectionHeader {
id: scanHeader
id: settingsHeader
text: qsTr("Settings")
}
......@@ -75,7 +75,7 @@ Rectangle {
anchors.left: parent.left
anchors.right: parent.rightsetI
spacing: _margin
visible: scanHeader.checked
visible: settingsHeader.checked
GridLayout {
anchors.left: parent.left
......@@ -84,30 +84,32 @@ Rectangle {
rowSpacing: _margin
columns: 2
QGCLabel {
text: qsTr("Bottom Layer Alt.")
}
QGCLabel { text: qsTr("Altitude") }
FactTextField {
fact: areaItem.bottomLayerAltitude
Layout.fillWidth: true
fact: areaItem.bottomLayerAltitude
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
}
QGCLabel { text: qsTr("Number of Layers") }
QGCLabel { text: qsTr("Layers") }
FactTextField {
fact: areaItem.numberOfLayers
Layout.fillWidth: true
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
}
QGCLabel { text: qsTr("Layer Distance") }
QGCLabel { text: qsTr("Layer Dist.") }
FactTextField {
fact: areaItem.layerDistance
Layout.fillWidth: true
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
}
QGCLabel { text: qsTr("Border Offset") }
QGCLabel { text: qsTr("Offset") }
FactTextField {
fact: areaItem.borderPolygonOffset
Layout.fillWidth: true
Layout.alignment: Qt.AlignLeft | Qt.AlignVCenter
}
......@@ -117,7 +119,7 @@ Rectangle {
height: ScreenTools.defaultFontPixelHeight / 2
width: 1
}
} // Column - Scan
} // Column - Settings
SectionHeader {
id: polylineHeader
text: qsTr("Gateway Poly Line")
......
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