PageStack::push() should return the object that was pushed
Bug #1361919 reported by
Antti Kaijanmäki
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
Critical
|
Tim Peeters | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Vivid |
Fix Released
|
Undecided
|
Unassigned | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
New
|
Undecided
|
Unassigned |
Bug Description
This way the caller can connect to any signals the pushed Component might have.
Related branches
lp://staging/~tpeeters/ubuntu-ui-toolkit/push
- Cris Dywan: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 193 lines (+67/-15)5 files modifiedmodules/Ubuntu/Components/PageStack.qml (+20/-13)
modules/Ubuntu/Components/PageWrapper.qml (+2/-0)
modules/Ubuntu/Components/PageWrapperUtils.js (+2/-2)
tests/unit_x11/tst_components/MyExternalPage.qml (+22/-0)
tests/unit_x11/tst_components/tst_pagestack_new_header.qml (+21/-0)
Changed in ubuntu-ui-toolkit: | |
importance: | Undecided → Critical |
assignee: | nobody → Tim Peeters (tpeeters) |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit: | |
status: | Confirmed → In Progress |
Changed in ubuntu-ui-toolkit: | |
milestone: | none → 10.24 |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → Fix Released |
Changed in ubuntu-ui-toolkit (Ubuntu Vivid): | |
status: | New → Fix Released |
To post a comment you must log in.
right now I'm working around this by havving a function object property in the page:
FooPage.qml:
onClicked: activateCb("Foo")
...
/// work around LP(#1361919)
property var activateCb;
....
....
Bar.qml:
pageStack. push(Qt. resolvedUrl( "FooPage. qml"),
{
activateCb: myActivateFunction
} );
....