Discussed with Gustavo, and we decided to close the bug. If it turns out
that later there are problems the bug may be re-opened.
** Changed in: ubuntu-ui-toolkit (Ubuntu)
Status: Incomplete => Invalid
** Changed in: canonical-devices-system-image
Status: Triaged => Invalid
--
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/1557707
Title:
[Sections] selectedIndex binding is broken if the model changes
Status in Canonical System Image:
Invalid
Status in ubuntu-ui-toolkit package in Ubuntu:
Invalid
Bug description:
If I assign a default value for the selectedIndex, it is expected that
the binding for this value will be kept until the user selects a
different section. Changing the model should not affect that, but it
does, as this example shows:
import QtQuick 2.0
import Ubuntu.Components 1.3
MainView {
width: 720
height: 1280
Page {
id: myPage
anchors.fill: parent
title: "Click the page"
header: PageHeader {
id: pageHeader
title: myPage.title
extension: Sections {
id: pageSections
model: [ "one", "two", "three" ]
selectedIndex: 1
}
}
MouseArea {
anchors.fill: parent
onClicked: pageSections.model = [ "first", "second", "third" ]
}
}
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1557707/+subscriptions
--
Mailing list: https://launchpad.net/~ubuntu-sdk-bugs
Post to : [email protected]
Unsubscribe : https://launchpad.net/~ubuntu-sdk-bugs
More help : https://help.launchpad.net/ListHelp