Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Itinerary
Commits
0ecc23c1
Commit
0ecc23c1
authored
Apr 22, 2021
by
Volker Krause
Browse files
Use the new grouped by country mode for the public transport backend model
parent
397481c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/PublicTransportBackendPage.qml
View file @
0ecc23c1
...
...
@@ -19,6 +19,7 @@ Kirigami.ScrollablePage {
KPublicTransport.BackendModel
{
id
:
backendModel
mode
:
KPublicTransport
.
BackendModel
.
GroupByCountry
}
Component
{
...
...
@@ -79,7 +80,7 @@ Kirigami.ScrollablePage {
model
:
backendModel
delegate
:
backendDelegate
section.property
:
"
primaryC
ountryCode
"
section.property
:
"
c
ountryCode
"
section.delegate
:
Kirigami.ListSectionHeader
{
text
:
(
section
==
""
||
section
==
"
UN
"
)
?
i18n
(
"
Global
"
)
:
Localizer
.
countryFlag
(
section
)
+
"
"
+
Localizer
.
countryName
(
section
)
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment