Provide a way of specifying a parent for Dialogs/Popups different than the root object when using PopupUtils.open
Bug #1656857 reported by
Albert Astals Cid
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Cris Dywan |
Bug Description
In unity8 we have some special requirements regarding how Dialogs/Popups should be required to rotate given we have several layers of rotation (phone default orientation, if rotation is fixed, etc).
At the moment we can not use PopupUtils.open because that makes the Dialogs/Popups be children of the root item of the scene and that does not work for us.
Would be nice to either have another parameter to PopupUtils.open so that you can specify the parent of the Dialog or some other way to do it.
Related branches
lp:~ubuntu-sdk-team/ubuntu-ui-toolkit/visualRoot
- ubuntu-sdk-build-bot: Approve (continuous-integration)
- Tim Peeters: Approve
- Zsombor Egri: Needs Information
-
Diff: 218 lines (+99/-2)7 files modifiedsrc/UbuntuToolkit/quickutils.cpp (+9/-0)
src/UbuntuToolkit/ucmainwindow.cpp (+26/-0)
src/UbuntuToolkit/ucmainwindow_p.h (+7/-0)
src/UbuntuToolkit/ucmainwindow_p_p.h (+1/-0)
src/imports/Components/Popups/1.3/popupUtils.js (+6/-1)
tests/unit/mainwindow/VisualRoot.qml (+36/-0)
tests/unit/mainwindow/tst_mainwindow.cpp (+14/-1)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Confirmed → Fix Committed |
tags: | added: unity8 |
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.