Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
Itinerary
Commits
d6cf8b72
Commit
d6cf8b72
authored
Dec 27, 2018
by
Volker Krause
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show platform changes in the train details page
parent
f76f13a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
src/app/TrainPage.qml
src/app/TrainPage.qml
+22
-4
No files found.
src/app/TrainPage.qml
View file @
d6cf8b72
...
...
@@ -69,9 +69,18 @@ App.DetailsPage {
App.PlaceDelegate
{
place
:
reservationFor
.
departureStation
}
QQC2.Label
{
RowLayout
{
Kirigami.FormData.label
:
i18n
(
"
Platform:
"
)
text
:
reservationFor
.
departurePlatform
QQC2.Label
{
text
:
departure
.
hasExpectedPlatform
?
departure
.
expectedPlatform
:
reservationFor
.
departurePlatform
color
:
departure
.
platformChanged
?
Kirigami
.
Theme
.
negativeTextColor
:
departure
.
hasExpectedPlatform
?
Kirigami
.
Theme
.
positiveTextColor
:
Kirigami
.
Theme
.
textColor
;
}
QQC2.Label
{
text
:
i18n
(
"
(was: %1)
"
,
reservationFor
.
departurePlatform
)
visible
:
departure
.
platformChanged
&&
reservationFor
.
departurePlatform
!=
""
}
}
// arrival data
...
...
@@ -97,9 +106,18 @@ App.DetailsPage {
App.PlaceDelegate
{
place
:
reservationFor
.
arrivalStation
}
QQC2.Label
{
RowLayout
{
Kirigami.FormData.label
:
i18n
(
"
Platform:
"
)
text
:
reservationFor
.
arrivalPlatform
QQC2.Label
{
text
:
arrival
.
hasExpectedPlatform
?
arrival
.
expectedPlatform
:
reservationFor
.
arrivalPlatform
color
:
arrival
.
platformChanged
?
Kirigami
.
Theme
.
negativeTextColor
:
arrival
.
hasExpectedPlatform
?
Kirigami
.
Theme
.
positiveTextColor
:
Kirigami
.
Theme
.
textColor
;
}
QQC2.Label
{
text
:
i18n
(
"
(was: %1)
"
,
reservationFor
.
arrivalPlatform
)
visible
:
arrival
.
platformChanged
&&
reservationFor
.
arrivalPlatform
!=
""
}
}
// seat reservation
...
...
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