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
3fa156c2
Commit
3fa156c2
authored
Jan 01, 2019
by
Volker Krause
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show useful title if we have no train name/number yet
parent
af9202ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/app/TrainDelegate.qml
src/app/TrainDelegate.qml
+6
-1
No files found.
src/app/TrainDelegate.qml
View file @
3fa156c2
...
...
@@ -30,7 +30,12 @@ App.TimelineDelegate {
headerIconSource
:
"
qrc:///images/train.svg
"
headerItem
:
RowLayout
{
QQC2.Label
{
text
:
reservationFor
.
trainName
+
"
"
+
reservationFor
.
trainNumber
text
:
{
if
(
reservationFor
.
trainName
||
reservationFor
.
trainNumber
)
{
return
reservationFor
.
trainName
+
"
"
+
reservationFor
.
trainNumber
}
return
i18n
(
"
%1 to %2
"
,
reservationFor
.
departureStation
.
name
,
reservationFor
.
arrivalStation
.
name
);
}
color
:
Kirigami
.
Theme
.
textColor
font.pointSize
:
Kirigami
.
Theme
.
defaultFont
.
pointSize
*
root
.
headerFontScale
Layout.fillWidth
:
true
...
...
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