Page.head.sections.selectedIndex binding of values is broken
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
When trying to assign a binding value to head.sections.
See the example program below:
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: "selectedIndex: " + head.sections.
property int selectedIndex: -1
Rectangle {
color: "white"
Label {
}
}
MouseArea {
}
}
}
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Undecided → High |
Changed in canonical-devices-system-image: | |
importance: | Undecided → High |
assignee: | nobody → Zoltan Balogh (bzoltan) |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
Changed in canonical-devices-system-image: | |
milestone: | none → ww02-2016 |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | Zoltan Balogh (bzoltan) → Tim Peeters (tpeeters) |
status: | New → Triaged |
Changed in canonical-devices-system-image: | |
status: | New → Confirmed |
affects: | ubuntu-ui-toolkit (Ubuntu) → ubuntu-ui-toolkit (Ubuntu RTM) |
Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
importance: | High → Critical |
Changed in canonical-devices-system-image: | |
status: | Confirmed → Fix Released |
Changed in ubuntu-ui-toolkit (Ubuntu RTM): | |
status: | In Progress → Fix Released |
Changed in canonical-devices-system-image: | |
status: | Fix Released → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
This construction with a binding for head.sections. selectedIndex should be avoided, because when the user taps on the sections to change the current section, the new index of the section is updated and the binding is broken.
Perhaps your newly defined property int selectedIndex should be an alias instead?