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
Libraries
KPublicTransport
Commits
c5588222
Commit
c5588222
authored
Oct 02, 2021
by
Volker Krause
Browse files
Show distance/travel time for rental vehicle sections as well
parent
6547d469
Pipeline
#84261
passed with stage
in 1 minute and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/journeyquery.qml
View file @
c5588222
...
@@ -242,7 +242,7 @@ Kirigami.ApplicationWindow {
...
@@ -242,7 +242,7 @@ Kirigami.ApplicationWindow {
case
JourneySection
.
Waiting
:
case
JourneySection
.
Waiting
:
return
"
Wait
"
+
displayDuration
(
modelData
.
duration
)
return
"
Wait
"
+
displayDuration
(
modelData
.
duration
)
case
JourneySection
.
RentedVehicle
:
case
JourneySection
.
RentedVehicle
:
return
modelData
.
rentalVehicle
.
network
.
name
;
return
"
Drive (
"
+
modelData
.
rentalVehicle
.
network
.
name
+
"
)
"
+
displayDuration
(
modelData
.
duration
)
+
"
/
"
+
displayDistance
(
modelData
.
distance
)
;
return
"
???
"
;
return
"
???
"
;
}}
}}
}
}
...
@@ -399,7 +399,7 @@ Kirigami.ApplicationWindow {
...
@@ -399,7 +399,7 @@ Kirigami.ApplicationWindow {
QQC2.CheckBox
{
QQC2.CheckBox
{
id
:
rentalMode
id
:
rentalMode
checked
:
true
checked
:
true
text
:
"
Retal Vehicles
"
text
:
"
Re
n
tal Vehicles
"
}
}
}
}
RowLayout
{
RowLayout
{
...
...
Write
Preview
Markdown
is supported
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