Fixed tooltip now closing properly. Fixes #159

This commit is contained in:
fourtf
2017-12-24 23:56:08 +01:00
parent 91099c028e
commit 0ca4a098e1
4 changed files with 10 additions and 21 deletions
+8 -1
View File
@@ -104,7 +104,14 @@ bool BaseWidget::nativeEvent(const QByteArray &eventType, void *message, long *r
}
#endif
void BaseWidget::focusOutEvent(QFocusEvent *)
void BaseWidget::changeEvent(QEvent *)
{
if (this->isWindow) {
TooltipWidget::getInstance()->hide();
}
}
void BaseWidget::leaveEvent(QEvent *)
{
if (this->isWindow) {
TooltipWidget::getInstance()->hide();