dismiss tooltip flyout when opening panel menus
This commit is contained in:
parent
7e359fb730
commit
21f96dc68e
4 changed files with 4 additions and 3 deletions
|
|
@ -72,7 +72,7 @@ M.BarSection {
|
|||
TapHandler {
|
||||
acceptedButtons: Qt.LeftButton
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onTapped: menuLoader.active = !menuLoader.active
|
||||
onTapped: { menuLoader.active = !menuLoader.active; M.FlyoutState.visible = false; }
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ M.BarSection {
|
|||
|
||||
TapHandler {
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onTapped: menuLoader.active = !menuLoader.active
|
||||
onTapped: { menuLoader.active = !menuLoader.active; M.FlyoutState.visible = false; }
|
||||
}
|
||||
|
||||
Loader {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ M.BarIcon {
|
|||
MouseArea {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: menuLoader.active = !menuLoader.active
|
||||
onClicked: { menuLoader.active = !menuLoader.active; M.FlyoutState.visible = false; }
|
||||
}
|
||||
|
||||
Loader {
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ RowLayout {
|
|||
if (root._activeMenu && root._activeMenu !== menuLoader)
|
||||
root._activeMenu.active = false;
|
||||
menuLoader.active = true;
|
||||
M.FlyoutState.visible = false;
|
||||
root._activeMenu = menuLoader;
|
||||
} else {
|
||||
iconItem.modelData.secondaryActivate();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue