← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1566231] Re: When changing Page.header, set previous header.parent to null.

 

** Also affects: ubuntu-ui-toolkit (Ubuntu RTM)
   Importance: Undecided
       Status: New

** Also affects: canonical-devices-system-image
   Importance: Undecided
       Status: New

** Changed in: canonical-devices-system-image
     Assignee: (unassigned) => Zoltan Balogh (bzoltan)

** Changed in: canonical-devices-system-image
   Importance: Undecided => High

** Changed in: canonical-devices-system-image
    Milestone: None => 11

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1566231

Title:
  When changing Page.header, set previous header.parent to null.

Status in Canonical System Image:
  New
Status in ubuntu-ui-toolkit package in Ubuntu:
  In Progress
Status in ubuntu-ui-toolkit package in Ubuntu RTM:
  New

Bug description:
  Currently when Page.header = header1, and then you set Page.header =
  header2, header1.parent will be reverted to the parent that header1
  had before it was assigned to Page.header (and thus re-parented to
  that page).

  Motivation: You want only one header at the same time to touch the
  topMargins of a flickable. We will not set the flickable margins for a
  header that is not visible or has parent null. So unsetting the parent
  when the header is no longer active will revert the flickable margins.
  Here we choose to change header.parent because header.visible may have
  other bindings that we do not need to break this way.

  Note: There will be no ownership transfer. We are changing the
  parentItem, not the QObject parent.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1566231/+subscriptions


References