Commit 658e4129 authored by Nicolas Fella's avatar Nicolas Fella

Make things nicer

parent 30694d7d
......@@ -3,6 +3,7 @@ import QtQuick.Layouts 1.1
import QtQuick.Controls 2.4
import org.kde.kirigami 2.4 as Kirigami
import org.kde.ktrip 0.1
import org.kde.kpublictransport 1.0
Kirigami.Page
{
......@@ -37,10 +38,18 @@ Kirigami.Page
id: headerLabel
anchors.fill: parent
anchors.margins: Kirigami.Units.largeSpacing
text: modelData.route.line.name
color: Kirigami.Theme.textColor
font.pointSize: Kirigami.Theme.defaultFont.pointSize * root.headerFontScale
Layout.fillWidth: true
text: {
if (modelData.mode == JourneySection.Walking) {
return "Walking"
}
return modelData.route.line.name
}
}
}
......
......@@ -15,7 +15,7 @@ Kirigami.Page
model: _queryController.journeyModel
delegate: Kirigami.BasicListItem {
text: journey.sections[0].from.name + " - " + journey.sections[journey.sections.length - 1].to.name + " (" + journey.numberOfChanges + " changes)"
text: journey.sections[0].scheduledDepartureTime.toLocaleTimeString(Locale.ShortFormat) + " - " + journey.sections[journey.sections.length - 1].scheduledArrivalTime.toLocaleTimeString(Locale.ShortFormat) + " (" + journey.numberOfChanges + " changes)"
onClicked: pageStack.push(Qt.resolvedUrl("ConnectionDetailsPage.qml"), {journey: journey})
reserveSpaceForIcon: false
}
......
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