Page.head.sections selects the first item even though selectedIndex is -1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Zoltan Balogh | ||
messaging-app (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
Fix Released
|
Critical
|
Tim Peeters |
Bug Description
In some cases it is desired that no header section is selected when the program starts. We used to achieve that by setting head.sections.
import QtQuick 2.4
import Ubuntu.Components 1.3
MainView {
id: mainview
objectName: "mainView"
width: units.gu(100)
height: units.gu(75)
Page {
id: mainPage
title: "Should not select"
}
}
This is actually a regression, the sample program below works fine on Ubuntu.Components 1.2
-------
Update: The old header doesn't work with the new design properly, therefore apps should turn to use the 1.3 hearing as in the example below:
it will work properly when the app switches to the new header:
import QtQuick 2.4
import Ubuntu.Components 1.3
MainView {
id: mainview
objectName: "mainView"
width: units.gu(100)
height: units.gu(75)
Page {
id: mainPage
header: PageHeader {
title: "Should not select"
}
}
}
}
Changed in canonical-devices-system-image: | |
milestone: | none → ww02-2016 |
assignee: | nobody → Zoltan Balogh (bzoltan) |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
importance: | Undecided → Medium |
Changed in canonical-devices-system-image: | |
importance: | Undecided → Medium |
Changed in canonical-devices-system-image: | |
importance: | Medium → High |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Medium → High |
Changed in canonical-devices-system-image: | |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | Zoltan Balogh (bzoltan) → Zsombor Egri (zsombi) |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | Zsombor Egri (zsombi) → Tim Peeters (tpeeters) |
status: | New → Triaged |
affects: | ubuntu-ui-toolkit (Ubuntu) → ubuntu-ui-toolkit (Ubuntu RTM) |
Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
importance: | High → Critical |
Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
status: | Triaged → Fix Released |
Changed in canonical-devices-system-image: | |
status: | Confirmed → Fix Released |
description: | updated |
Changed in canonical-devices-system-image: | |
status: | Fix Released → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
Isn't this similar to bug 1511839?