← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1250194] Re: Cannot set initial state of TabBar using selectionMode

 

** Changed in: ubuntu-ui-toolkit (Ubuntu)
     Assignee: (unassigned) => Tim Peeters (tpeeters)

** Changed in: ubuntu-ui-toolkit
       Status: Fix Committed => Fix Released

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

Title:
  Cannot set initial state of TabBar using selectionMode

Status in Ubuntu UI Toolkit:
  Fix Released
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Fix Released

Bug description:
  Setting initial value of TabBar.selectionmode to specify whether the
  tab bar should be in selection mode initially does not work.

  TabBar has this code:
      /*!
        An inactive tab bar only displays the currently selected tab,
        and an active tab bar can be interacted with to select a tab.
       */
      property bool selectionMode: false

      /*!
        When all components are completed, enable selection mode
       */
      Component.onCompleted: {
          tabBar.selectionMode = true;
      }

  The solution looks easy: remove the onCompleted, and set the default
  value to true. However, that does not work because the initialization
  of the TabBar goes wrong then. More investigation is needed.

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