mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Disable backbutton implementation
This commit is contained in:
parent
60dae07742
commit
34be06c67a
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user