QML plasmoid, pageStack.pop() doesn't work
Aaron J. Seigo
aseigo at kde.org
Tue Jul 17 11:53:54 UTC 2012
On Thursday, July 12, 2012 18:24:18 Gao Xiang wrote:
> initialPage: [ c, b, a ]
as Darker noted, this is incorrect: it only takes a single page that is used
to initialize the stack.
you want to use push and pop to push and pop pages on and off the stack. push
can take an array of pages, so that you can do one push call to initialize the
whole thing (perhaps in Component.onCompleted?)
that this is not obvious may be a sign that the API could be improved.
on a side note, the API docs here are messed up somewhat:
http://api.kde.org/4.x-api/plasma-qml-apidocs/PageStack.html
note the list of methods.
--
Aaron J. Seigo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120717/ed31d124/attachment.sig>
More information about the Plasma-devel
mailing list