Commit 33f45088 authored by Nicolas Fella's avatar Nicolas Fella

Rework changes display

parent 565c7eb8
......@@ -28,7 +28,7 @@ if (ANDROID)
search
)
else()
target_link_libraries(ktrip Qt5::Widgets)
target_link_libraries(ktrip PRIVATE Qt5::Widgets)
endif()
install(TARGETS ktrip ${INSTALL_TARGETS_DEFAULT_ARGS})
......
......@@ -34,10 +34,21 @@ Kirigami.Page
model: _queryController.journeyModel
delegate: Kirigami.BasicListItem {
text: journey.sections[0].scheduledDepartureTime.toLocaleTimeString(Locale.ShortFormat) + " - " + journey.sections[journey.sections.length - 1].scheduledArrivalTime.toLocaleTimeString(Locale.ShortFormat) + " (" + journey.numberOfChanges + " changes)"
delegate: Kirigami.AbstractListItem {
onClicked: pageStack.push(Qt.resolvedUrl("ConnectionDetailsPage.qml"), {journey: journey})
reserveSpaceForIcon: false
RowLayout {
Label {
text: journey.sections[0].scheduledDepartureTime.toLocaleTimeString(Locale.ShortFormat) + " - " + journey.sections[journey.sections.length - 1].scheduledArrivalTime.toLocaleTimeString(Locale.ShortFormat)
Layout.fillWidth: true
}
Label {
text: journey.numberOfChanges + " changes"
visible: journey.numberOfChanges > 0
}
}
}
}
}
......
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