Public bug reported:

We have this code to set the navigation focus for ListItems:

void ListViewProxy::setKeyNavigationForListView(bool value)
{
    UCListItem *listItem = qobject_cast<UCListItem*>(currentItem());
    if (listItem) {
        UCListItemPrivate::get(listItem)->setListViewKeyNavigation(value);
        listItem->update();
    }
}

We can at least add code to StyledItem (and update ListViewProxy) to
make it work for that as well. I don't know if there can be a generic
solution for Items as well.

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

** Summary changed:

- ListView navigation using arrow keys only works with ListItem as a delegate
+ ListView keyboard navigation focus using arrow keys only works with ListItem 
as a delegate

** Description changed:

- We can at least add code to StyledItem to make it work for that as well.
- I don't know if there can be a generic solution for Items as well.
+ We have this code to set the navigation focus for ListItems:
+ 
+ void ListViewProxy::setKeyNavigationForListView(bool value)
+ {
+     UCListItem *listItem = qobject_cast<UCListItem*>(currentItem());
+     if (listItem) {
+         UCListItemPrivate::get(listItem)->setListViewKeyNavigation(value);
+         listItem->update();
+     }
+ }
+ 
+ We can at least add code to StyledItem (and update ListViewProxy) to
+ make it work for that as well. I don't know if there can be a generic
+ solution for Items as well.

-- 
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/1573616

Title:
  ListView keyboard navigation focus using arrow keys only works with
  ListItem as a delegate

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

Bug description:
  We have this code to set the navigation focus for ListItems:

  void ListViewProxy::setKeyNavigationForListView(bool value)
  {
      UCListItem *listItem = qobject_cast<UCListItem*>(currentItem());
      if (listItem) {
          UCListItemPrivate::get(listItem)->setListViewKeyNavigation(value);
          listItem->update();
      }
  }

  We can at least add code to StyledItem (and update ListViewProxy) to
  make it work for that as well. I don't know if there can be a generic
  solution for Items as well.

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

-- 
Mailing list: https://launchpad.net/~ubuntu-sdk-bugs
Post to     : ubuntu-sdk-bugs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-sdk-bugs
More help   : https://help.launchpad.net/ListHelp

Reply via email to