← Back to team overview

touch-packages team mailing list archive

[Bug 1493040] [NEW] PageHeadSections changes selection when adding/removing items

 

Public bug reported:

When adding/removing an item from the model, the item selected by the
PageHeadSections changes. Selecting the next item along when removing an
item before the selection, and the previous item when adding an item
before the selection.

Note that this behaviour works correctly in the Picker component (except
for bug #1344883). Basically, the element should pay attention to
changes in the model and update it's selectedIndex appropriately in
order to continue selecting the same element after updates.

A minimal example is attached to demonstrate this.

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "test.qml"
   https://bugs.launchpad.net/bugs/1493040/+attachment/4458730/+files/test.qml

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

Title:
  PageHeadSections changes selection when adding/removing items

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  When adding/removing an item from the model, the item selected by the
  PageHeadSections changes. Selecting the next item along when removing
  an item before the selection, and the previous item when adding an
  item before the selection.

  Note that this behaviour works correctly in the Picker component
  (except for bug #1344883). Basically, the element should pay attention
  to changes in the model and update it's selectedIndex appropriately in
  order to continue selecting the same element after updates.

  A minimal example is attached to demonstrate this.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1493040/+subscriptions


Follow ups