Change to Almman indent style

This commit is contained in:
Angela Mazzurco 2017-06-13 14:51:53 +02:00
parent 4b05555a5c
commit 9f26a0aec5
6 changed files with 98 additions and 61 deletions

View file

@ -63,12 +63,14 @@ ApplicationWindow
states:
[
State {
State
{
name: "DEFAULT"
PropertyChanges { target: toolBar; titleText: defaultLabel}
PropertyChanges { target: toolBar; loaderSource: rsIcon}
},
State {
State
{
name: "CHATVIEW"
}
]
@ -166,9 +168,12 @@ ApplicationWindow
id: stackView
anchors.fill: parent
focus: true
onCurrentItemChanged: {
if (currentItem) {
if (currentItem.objectName != "chatView" && toolBar.state != "DEFAULT"){
onCurrentItemChanged:
{
if (currentItem)
{
if (currentItem.objectName != "chatView" && toolBar.state != "DEFAULT")
{
toolBar.state = "DEFAULT"
}
currentItem.focus = true