Commit e74c883e authored by Volker Krause's avatar Volker Krause
Browse files

Show direction and floor level change information

parent 02d81104
Pipeline #74322 passed with stage
in 19 seconds
......@@ -15,8 +15,60 @@ Kirigami.ScrollablePage {
Component {
id: pathDelegate
Kirigami.BasicListItem {
text: modelData.description + " (" + modelData.distance + "m)"
Kirigami.AbstractListItem {
highlighted: false
GridLayout {
rows: 2
columns: 4
QQC2.Label {
Layout.row: 0
Layout.column: 0
Layout.rowSpan: 2
text: {
switch (modelData.maneuver) {
case PathSection.Elevator:
return "🛗";
case PathSection.Escalator:
return "↗️";
default:
return "🚶";
}
}
font.pixelSize: 32
}
QQC2.Label {
Layout.row: 0
Layout.column: 1
Layout.rowSpan: 2
visible: modelData.floorLevelChange != 0
text: modelData.floorLevelChange < 0 ? "⬇️" : "⬆️"
font.pixelSize: 32
}
QQC2.Label {
Layout.row: 0
Layout.column: 2
Layout.fillWidth: true
text: modelData.description
}
QQC2.Label {
Layout.row: 1
Layout.column: 2
text: modelData.distance + "m"
}
QQC2.Label {
Layout.row: 0
Layout.column: 3
Layout.rowSpan: 2
text: "⬆️"
visible: modelData.direction >= 0
font.pixelSize: 32
rotation: modelData.direction
}
}
}
}
......
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