Commit f973e35e authored by Don Gagne's avatar Don Gagne

Change plan element selection to radio buttons

parent 750072dc
......@@ -562,66 +562,27 @@ QGCView {
}
}
RoundButton {
QGCRadioButton {
id: planElementMission
radius: parent._buttonRadius
buttonImage: "/qmlimages/Plan.svg"
lightBorders: _lightWidgetBorders
exclusiveGroup: planElementSelectorGroup
text: qsTr("Mission")
checked: true
}
QGCLabel {
text: qsTr("Mission")
color: mapPal.text
anchors.verticalCenter: parent.verticalCenter
MouseArea {
anchors.fill: parent
onClicked: planElementMission.checked = true
}
}
Item { height: 1; width: 1 }
RoundButton {
QGCRadioButton {
id: planElementGeoFence
radius: parent._buttonRadius
buttonImage: "/qmlimages/Plan.svg"
lightBorders: _lightWidgetBorders
exclusiveGroup: planElementSelectorGroup
}
QGCLabel {
text: qsTr("Fence")
color: mapPal.text
anchors.verticalCenter: parent.verticalCenter
MouseArea {
anchors.fill: parent
onClicked: planElementGeoFence.checked = true
}
text: qsTr("Fence")
}
Item { height: 1; width: 1 }
RoundButton {
QGCRadioButton {
id: planElementRallyPoints
radius: parent._buttonRadius
buttonImage: "/qmlimages/Plan.svg"
lightBorders: _lightWidgetBorders
exclusiveGroup: planElementSelectorGroup
}
QGCLabel {
text: qsTr("Rally")
color: mapPal.text
anchors.verticalCenter: parent.verticalCenter
MouseArea {
anchors.fill: parent
onClicked: planElementRallyPoints.checked = true
}
text: qsTr("Rally")
}
} // Row - Plan Element Selector
......
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