mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 04:44:08 +02:00
click breadcrumb text to go back to parent menu
This commit is contained in:
parent
ef699db5be
commit
54eef26eaa
1 changed files with 17 additions and 1 deletions
|
@ -3,6 +3,7 @@ import QtGraphicalEffects 1.0
|
|||
import QtQuick.Controls 1.4
|
||||
import QtQml 2.2
|
||||
import "."
|
||||
import "../../styles-uit"
|
||||
|
||||
Item {
|
||||
id: tabletMenu
|
||||
|
@ -49,7 +50,7 @@ Item {
|
|||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
// navigate back to top level menu
|
||||
// navigate back to root level menu
|
||||
onClicked: buildMenu();
|
||||
}
|
||||
}
|
||||
|
@ -60,6 +61,21 @@ Item {
|
|||
source: menuRootIcon
|
||||
color: "#ffffff"
|
||||
}
|
||||
|
||||
RalewayBold {
|
||||
id: breadcrumbText
|
||||
text: "MENU"
|
||||
size: 18
|
||||
color: "#ffffff"
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.left: menuRootIcon.right
|
||||
anchors.leftMargin: 15
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
// navigate back to parent level menu
|
||||
onClicked: menuPopperUpper.closeLastMenu();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function setRootMenu(menu) {
|
||||
|
|
Loading…
Reference in a new issue