mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:58:03 +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 QtQuick.Controls 1.4
|
||||||
import QtQml 2.2
|
import QtQml 2.2
|
||||||
import "."
|
import "."
|
||||||
|
import "../../styles-uit"
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: tabletMenu
|
id: tabletMenu
|
||||||
|
@ -49,7 +50,7 @@ Item {
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
// navigate back to top level menu
|
// navigate back to root level menu
|
||||||
onClicked: buildMenu();
|
onClicked: buildMenu();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,6 +61,21 @@ Item {
|
||||||
source: menuRootIcon
|
source: menuRootIcon
|
||||||
color: "#ffffff"
|
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) {
|
function setRootMenu(menu) {
|
||||||
|
|
Loading…
Reference in a new issue