Commit 98a0c4ed authored by Don Gagne's avatar Don Gagne

Merge pull request #3171 from DonLakeFlyer/CommandPick

Plan: Adjust "Change command" for better usability
parents 1ce269c2 bd3a5f97
...@@ -82,6 +82,11 @@ Rectangle { ...@@ -82,6 +82,11 @@ Rectangle {
onTriggered: remove() onTriggered: remove()
} }
MenuItem {
text: "Change command..."
onTriggered: commandPicker.clicked()
}
MenuSeparator { MenuSeparator {
visible: missionItem.isSimpleItem visible: missionItem.isSimpleItem
} }
...@@ -111,10 +116,12 @@ Rectangle { ...@@ -111,10 +116,12 @@ Rectangle {
QGCButton { QGCButton {
id: commandPicker id: commandPicker
anchors.topMargin: _margin / 2
anchors.leftMargin: ScreenTools.defaultFontPixelWidth * 2 anchors.leftMargin: ScreenTools.defaultFontPixelWidth * 2
anchors.rightMargin: ScreenTools.defaultFontPixelWidth anchors.rightMargin: ScreenTools.defaultFontPixelWidth
anchors.left: label.right anchors.left: label.right
anchors.right: hamburger.left anchors.top: parent.top
//anchors.right: hamburger.left
visible: missionItem.sequenceNumber != 0 && missionItem.isCurrentItem && !missionItem.rawEdit && missionItem.isSimpleItem visible: missionItem.sequenceNumber != 0 && missionItem.isCurrentItem && !missionItem.rawEdit && missionItem.isSimpleItem
text: missionItem.commandName text: missionItem.commandName
......
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