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 {
|
TapHandler {
|
||||||
acceptedButtons: Qt.LeftButton
|
acceptedButtons: Qt.LeftButton
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
onTapped: menuLoader.active = !menuLoader.active
|
onTapped: { menuLoader.active = !menuLoader.active; M.FlyoutState.visible = false; }
|
||||||
}
|
}
|
||||||
|
|
||||||
TapHandler {
|
TapHandler {
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ M.BarSection {
|
||||||
|
|
||||||
TapHandler {
|
TapHandler {
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
onTapped: menuLoader.active = !menuLoader.active
|
onTapped: { menuLoader.active = !menuLoader.active; M.FlyoutState.visible = false; }
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ M.BarIcon {
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
onClicked: menuLoader.active = !menuLoader.active
|
onClicked: { menuLoader.active = !menuLoader.active; M.FlyoutState.visible = false; }
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,7 @@ RowLayout {
|
||||||
if (root._activeMenu && root._activeMenu !== menuLoader)
|
if (root._activeMenu && root._activeMenu !== menuLoader)
|
||||||
root._activeMenu.active = false;
|
root._activeMenu.active = false;
|
||||||
menuLoader.active = true;
|
menuLoader.active = true;
|
||||||
|
M.FlyoutState.visible = false;
|
||||||
root._activeMenu = menuLoader;
|
root._activeMenu = menuLoader;
|
||||||
} else {
|
} else {
|
||||||
iconItem.modelData.secondaryActivate();
|
iconItem.modelData.secondaryActivate();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue