Skip to content
Snippets Groups Projects
Commit f722a84b authored by DoinLakeFlyer's avatar DoinLakeFlyer
Browse files

Vertical index display. Click anywhere in bar.
parent 1a668297
No related branches found
No related tags found
No related merge requests found
...@@ -99,12 +99,32 @@ Rectangle { ...@@ -99,12 +99,32 @@ Rectangle {
checked: object.isCurrentItem checked: object.isCurrentItem
label: object.abbreviation.charAt(0) label: object.abbreviation.charAt(0)
index: object.abbreviation.charAt(0) > 'A' && object.abbreviation.charAt(0) < 'z' ? -1 : object.sequenceNumber index: object.abbreviation.charAt(0) > 'A' && object.abbreviation.charAt(0) < 'z' ? -1 : object.sequenceNumber
showSequenceNumbers: true showSequenceNumbers: false
visible: true }
onClicked: root.setCurrentSeqNum(object.sequenceNumber)
Rectangle {
id: indexBackground
anchors.leftMargin: -2
anchors.rightMargin: -2
anchors.fill: indexLabel
color: qgcPal.window
opacity: 0.3
visible: indexLabel.visible
transform: Rotation { angle: 90; origin.x: indexBackground.width / 2; origin.y: indexBackground.height / 2 }
}
QGCLabel {
id: indexLabel
anchors.centerIn: parent
text: object.sequenceNumber
visible: indicator.index != -1
transform: Rotation { angle: 90; origin.x: indexLabel.width / 2; origin.y: indexLabel.height / 2 }
}
MouseArea {
anchors.fill: parent
onClicked: root.setCurrentSeqNum(object.sequenceNumber)
} }
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment