Disable backbutton implementation

This commit is contained in:
Angela Mazzurco 2017-06-23 17:26:51 +02:00
parent 60dae07742
commit 34be06c67a

View File

@ -64,7 +64,6 @@ ApplicationWindow
property string defaultLabel: "RetroShare" property string defaultLabel: "RetroShare"
property var iconsSize: (coreReady)? height - 10 : 0 property var iconsSize: (coreReady)? height - 10 : 0
property var backBtnVisible: true
property var searchBtnCb property var searchBtnCb
@ -97,7 +96,6 @@ ApplicationWindow
PropertyChanges { target: toolBar; titleText: defaultLabel} PropertyChanges { target: toolBar; titleText: defaultLabel}
PropertyChanges { target: toolBar; loaderSource: rsIcon} PropertyChanges { target: toolBar; loaderSource: rsIcon}
PropertyChanges { target: searchIcon; searchIconVisibility: true} PropertyChanges { target: searchIcon; searchIconVisibility: true}
PropertyChanges { target: toolBar; backBtnVisible: false }
} }
] ]
@ -145,28 +143,7 @@ ApplicationWindow
} }
BtnIcon
{
id: backButton
visible: toolBar.backBtnVisible
height: toolBar.iconsSize
width: toolBar.iconsSize
fillMode: Image.PreserveAspectFit
imgUrl: "/icons/microphone.svg"
onClicked:
{
if (stackView.depth > 1)
{
stackView.pop();
console.log("@@@@@@ depth ", stackView.depth)
// if (stackView.depth-1 == 0) toolBar.backBtnVisible = false
}
else
{
Qt.quit();
}
}
}
BtnIcon BtnIcon
{ {
@ -227,7 +204,6 @@ ApplicationWindow
} }
currentItem.focus = true currentItem.focus = true
} }
console.log("@@@@@ CHANGED", toolBar.state)
} }
Keys.onReleased: Keys.onReleased: