|
|
|
@ -19,6 +19,7 @@ import QGroundControl.FactSystem 1.0
@@ -19,6 +19,7 @@ import QGroundControl.FactSystem 1.0
|
|
|
|
|
import QGroundControl.FactControls 1.0 |
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
|
id: root |
|
|
|
|
height: ScreenTools.defaultFontPixelHeight * 7 |
|
|
|
|
radius: ScreenTools.defaultFontPixelWidth * 0.5 |
|
|
|
|
color: qgcPal.window |
|
|
|
@ -27,8 +28,14 @@ Rectangle {
@@ -27,8 +28,14 @@ Rectangle {
|
|
|
|
|
|
|
|
|
|
property var missionItems ///< List of all available mission items |
|
|
|
|
|
|
|
|
|
property real maxWidth: parent.width |
|
|
|
|
readonly property real _margins: ScreenTools.defaultFontPixelWidth |
|
|
|
|
|
|
|
|
|
onMaxWidthChanged: { |
|
|
|
|
var calcLength = (statusListView.count + 1)*statusListView.contentItem.children[0].width |
|
|
|
|
root.width = root.maxWidth > calcLength ? calcLength : root.maxWidth |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QGCPalette { id: qgcPal } |
|
|
|
|
|
|
|
|
|
QGCLabel { |
|
|
|
@ -56,6 +63,11 @@ Rectangle {
@@ -56,6 +63,11 @@ Rectangle {
|
|
|
|
|
clip: true |
|
|
|
|
currentIndex: _currentMissionIndex |
|
|
|
|
|
|
|
|
|
onCountChanged: { |
|
|
|
|
var calcLength = (statusListView.count + 1)*statusListView.contentItem.children[0].width |
|
|
|
|
root.width = root.maxWidth > calcLength ? calcLength : root.maxWidth |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
delegate: Item { |
|
|
|
|
height: statusListView.height |
|
|
|
|
width: display ? (indicator.width + spacing) : 0 |
|
|
|
|