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