click breadcrumb text to go back to parent menu

This commit is contained in:
Faye Li Si Fi 2017-01-12 16:33:33 -08:00
parent ef699db5be
commit 54eef26eaa

View file

@ -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) {