Adding PropertyChanges to PageHeadState overwrites previous PropertyChanges
Bug #1345775 reported by
Tim Peeters
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Won't Fix
|
High
|
Tim Peeters |
Bug Description
When adding PropertyChanges inside a PageHeadState, all the PropertyChanges defined inside the PageHeadState don't work aonymore, so setting the backAction, contents, actions does not work any more. See attached example.
Changed in ubuntu-ui-toolkit: | |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit: | |
importance: | High → Medium |
Changed in ubuntu-ui-toolkit: | |
importance: | Medium → High |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Tim Peeters (tpeeters) |
importance: | Undecided → High |
status: | New → Confirmed |
no longer affects: | ubuntu-ui-toolkit |
To post a comment you must log in.
Launchpad breaks when I try to add a qml file, so here is the source code to reproduce the problem:
import Ubuntu.Components 1.1
import QtQuick 2.2
MainView {
width: units.gu(40)
height: units.gu(40)
useDeprecat edToolbar: false
Page {
id: searchPage
title: "search page"
anchors. centerIn: parent
Label {
id: label
text: "normal mode" //searchPage.state == "search" ? "search mode" : "normal mode"
}
state: "default"
PageHeadSt ate {
name: "default"
head: searchPage.head
actions: Action {
id: searchAction
iconName: "search"
onTrigger ed: searchPage.state = "search"
PageHeadSt ate {
name: "search"
head: searchPage.head
actions: [
Action {
iconName: "contact"
}
backAction: Action {
id: leaveSearchAction
text: "back"
iconName: "back"
onTrigger ed: searchPage.state = "default"
contents: TextField {
placehold erText: "search..."
PropertyChang es {
target: label
text: "search mode"
states: [
}
},
id: headerState
]
}
}
}
}
]
}
}