Commit 23a072e7 authored by Volker Krause's avatar Volker Krause
Browse files

Show intermediate stop notes when available

parent 9b35af4e
......@@ -30,7 +30,7 @@ Item {
width: parent.width
height: parent.height
columns: 7
rows: 2
rows: 3
Item {
id: lineSegment
Layout.column: 0
......@@ -160,5 +160,37 @@ Item {
applicationWindow().pageStack.push(indoorMapPage, args);
}
}
// intermediate stop notes
Item {
Layout.column: 0
Layout.row: 2
Layout.fillHeight: true
implicitWidth: lineSegment.implicitWidth
visible: notesLabel.visible
Rectangle {
y: -layout.rowSpacing
x: 2 * lineSegment.lineWidth
width: lineSegment.lineWidth
color: lineSegment.lineColor
height: parent.height - y
}
}
QQC2.Label {
id: notesLabel
Layout.column: 3
Layout.row: 2
Layout.columnSpan: 3
Layout.fillWidth: true
Layout.fillHeight: true
verticalAlignment: Qt.AlignTop
text: stop.notes.join("<br/>")
textFormat: Text.RichText
wrapMode: Text.Wrap
visible: stop.notes.length > 0 && !isDeparture
font.italic: true
}
}
}
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