Move selectedTabIndex to tabs model

Bug #1290121 reported by Tim Peeters
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Fix Released
Critical
Tim Peeters
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Code from Tabs.qml:

property alias selectedTabIndex: bar.selectedIndex

There is also some checking of the model inside TabBar.qml. This is not good because we do not want Tabs to depend on the TabBar. For upcoming changes (TabBar will be deprecated eventually, but for now we will give the app developers the option to choose between the "old" TabBar, and a new way to display the tabs), I want to load the TabBar inside a Loader only when it is needed. So some code may need to be moved from TabBar to Tabs, and the alias listed above must be removed.

Update: unity8 uses the tabbar (and will use the tabs drawer in the header) without the Tabs, so we decided to move the selected tab index to the model instead of the Tabs.

Tags: header tabs

Related branches

Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
importance: Undecided → High
Tim Peeters (tpeeters)
description: updated
Revision history for this message
Tim Peeters (tpeeters) wrote :

A complication in fixing this bug is that the scopes use the TabBar without Tabs.

Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Tim Peeters (tpeeters)
status: New → In Progress
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
importance: High → Critical
summary: - Tabs model logic is in TabBar, but should be in Tabs
+ Tabs model logic is in TabBar, but should be in tabs model
description: updated
summary: - Tabs model logic is in TabBar, but should be in tabs model
+ Move selectedTabIndex to tabs model
tags: added: header tabs
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
milestone: none → march-2014
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 0.1.46+14.04.20140404.1-0ubuntu1

---------------
ubuntu-ui-toolkit (0.1.46+14.04.20140404.1-0ubuntu1) trusty; urgency=low

  [ tpeeters ]
  * Move the property to keep track of the selected tab to the tabs
    model. (LP: #1290121)
 -- Ubuntu daily release <email address hidden> Fri, 04 Apr 2014 15:08:22 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Fix Released
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: In Progress → Fix Committed
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.