[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: QML plasmoid, pageStack.pop() doesn't work
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2012-07-17 11:53:54
Message-ID: 2535644.EqpDfhWl0f () freedom
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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
["signature.asc" (application/pgp-signature)]

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic