Work around Qt hover bug for tooltips

This commit is contained in:
miruka 2019-12-06 08:20:30 -04:00
parent d70260d007
commit d354480840
2 changed files with 5 additions and 3 deletions

View File

@ -11,9 +11,9 @@ ToolTip {
property alias label: label property alias label: label
property alias backgroundColor: background.color property alias backgroundColor: background.color
readonly property bool hideNow: visible && ! window.hovered readonly property bool hideNow: ! window.hovered
onHideNowChanged: if (hideNow) toolTip.hide() onHideNowChanged: if (visible && hideNow) toolTip.hide()
background: Rectangle { background: Rectangle {

View File

@ -13,6 +13,8 @@ ApplicationWindow {
color: "transparent" color: "transparent"
// FIXME: Qt 5.13.1 bug, this randomly stops updating after the cursor
// leaves the window until it's clicked again.
readonly property alias hovered: windowHover.hovered readonly property alias hovered: windowHover.hovered
readonly property bool hidden: readonly property bool hidden:
@ -21,7 +23,7 @@ ApplicationWindow {
window.visibility == window.Minimized || window.visibility == window.Minimized ||
window.visibility == window.Hidden window.visibility == window.Hidden
// Note: For JS object variables, the corresponding method to notify // NOTE: For JS object variables, the corresponding method to notify
// key/value changes must be called manually, e.g. settingsChanged(). // key/value changes must be called manually, e.g. settingsChanged().
property var modelSources: ({}) property var modelSources: ({})
property var sidePaneModelSource: [] property var sidePaneModelSource: []