Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
Itinerary
Commits
8e4c62d6
Commit
8e4c62d6
authored
Apr 22, 2018
by
Volker Krause
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase declarative-ness
Fixes a bunch of runtime warnings in BoardingPass.qml.
parent
e6bfc2b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/app/TimelineDelegate.qml
src/app/TimelineDelegate.qml
+8
-5
No files found.
src/app/TimelineDelegate.qml
View file @
8e4c62d6
...
...
@@ -23,6 +23,7 @@ import org.kde.itinerary 1.0
import
"
.
"
as
App
Item
{
id
:
root
property
var
reservation
property
var
pass
property
string
passId
...
...
@@ -32,23 +33,25 @@ Item {
function
showBoardingPass
()
{
applicationWindow
().
pageStack
.
push
(
pkpassComponent
);
applicationWindow
().
pageStack
.
currentItem
.
passId
=
passId
applicationWindow
().
pageStack
.
currentItem
.
pass
=
pass
}
function
showTicket
()
{
applicationWindow
().
pageStack
.
push
(
ticketPageComponent
);
applicationWindow
().
pageStack
.
currentItem
.
reservation
=
reservation
;
}
Component
{
id
:
pkpassComponent
App.PkPassPage
{}
App.PkPassPage
{
passId
:
root
.
passId
pass
:
root
.
pass
}
}
Component
{
id
:
ticketPageComponent
App.TicketPage
{}
App.TicketPage
{
reservation
:
root
.
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