The Tab needs a tabIndex property
Bug #1233402 reported by
Leo Arias
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
Critical
|
Zsombor Egri | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The Tabs element on the qml tree has a property selectedTabIndex. Previously, we used that on the autopilot emulator to find the currently selected tab, because the order of tabs on the tree was the same as the order in which the tabs were defined.
Now the order is not the same, and we don't have a way to know which one is the currently selected tab.
So, just as the buttons on the tab bar, the Tab elements should have a tabIndex property.
Related branches
lp:~zsombi/ubuntu-ui-toolkit/tab-index
- PS Jenkins bot: Approve (continuous-integration)
- Zoltan Balogh: Approve
-
Diff: 226 lines (+73/-5)7 files modifiedCHANGES (+1/-0)
components.api (+2/-0)
modules/Ubuntu/Components/Tab.qml (+16/-0)
modules/Ubuntu/Components/Tabs.qml (+5/-1)
tests/autopilot/ubuntuuitoolkit/emulators.py (+36/-4)
tests/unit/tst_components/tst_tab.qml (+4/-0)
tests/unit/tst_components/tst_tabs.qml (+9/-0)
lp:~elopio/ubuntu-ui-toolkit/fix_tab_switch
Rejected
for merging
into
lp:ubuntu-ui-toolkit
- PS Jenkins bot: Approve (continuous-integration)
- Zsombor Egri: Approve
-
Diff: 116 lines (+36/-4)1 file modifiedtests/autopilot/ubuntuuitoolkit/emulators.py (+36/-4)
description: | updated |
Changed in ubuntu-ui-toolkit: | |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit: | |
importance: | Undecided → Critical |
assignee: | nobody → Zsombor Egri (zsombi) |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The property is called index. Check the MP fixing this bug to see whether you can fix the tests.