diff --git a/src/controls/GlobalDrawer.qml b/src/controls/GlobalDrawer.qml --- a/src/controls/GlobalDrawer.qml +++ b/src/controls/GlobalDrawer.qml @@ -191,6 +191,11 @@ readonly property Action currentSubMenu: stackView.currentItem ? stackView.currentItem.current: null /** + * Notifies that the banner has been clicked + */ + signal bannerClicked() + + /** * Reverts the menu back to its initial state */ function resetMenu() { @@ -224,6 +229,11 @@ Layout.preferredHeight: bannerImageSource != "" ? Math.max(title.implicitHeight, Math.floor(width / (sourceSize.width/sourceSize.height))) : title.implicitHeight Layout.minimumHeight: Math.max(headingIcon.height, heading.height) + Units.smallSpacing * 2 + MouseArea { + anchors.fill: parent + onClicked: root.bannerClicked() + } + fillMode: Image.PreserveAspectCrop asynchronous: true