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
a9135c35
Commit
a9135c35
authored
Mar 30, 2021
by
Volker Krause
Browse files
Show load information when available in the departure query test as well
parent
bd00bc3a
Pipeline
#56017
passed with stage
in 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/departurequery.qml
View file @
a9135c35
...
...
@@ -192,6 +192,43 @@ Kirigami.ApplicationWindow {
color
:
Kirigami
.
Theme
.
negativeTextColor
}
}
RowLayout
{
visible
:
departure
.
loadInformation
.
length
>
0
QQC2.Label
{
text
:
"
Load:
"
;
}
Repeater
{
model
:
departure
.
loadInformation
RowLayout
{
QQC2.Label
{
text
:
{
switch
(
modelData
.
load
)
{
case
Load
.
Low
:
return
"
Low
"
;
case
Load
.
Medium
:
return
"
Medium
"
;
case
Load
.
High
:
return
"
High
"
;
case
Load
.
Full
:
return
"
Full
"
;
default
:
return
"
?
"
}
}
color
:
{
switch
(
modelData
.
load
)
{
case
Load
.
Low
:
return
Kirigami
.
Theme
.
positiveTextColor
;
case
Load
.
Medium
:
return
Kirigami
.
Theme
.
neutralTextColor
;
case
Load
.
High
:
case
Load
.
Full
:
return
Kirigami
.
Theme
.
negativeTextColor
;
default
:
return
Kirigami
.
Theme
.
textColor
;
}
}
}
QQC2.Label
{
text
:
"
(class
"
+
modelData
.
seatingClass
+
"
)
"
visible
:
modelData
.
seatingClass
!=
""
}
}
}
}
QQC2.Label
{
text
:
departure
.
notes
.
join
(
"
<br/>
"
)
visible
:
departure
.
notes
.
length
>
0
...
...
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