moved the tooltip close logic to basewidget

This commit is contained in:
fourtf
2017-12-24 16:01:01 +01:00
parent 72ed52c35c
commit 91099c028e
5 changed files with 29 additions and 17 deletions
+12 -13
View File
@@ -107,20 +107,19 @@ void Window::closeEvent(QCloseEvent *)
this->closed();
}
void Window::changeEvent(QEvent *event)
{
if(!this->isActiveWindow())
{
this->lostFocus.invoke();
}
BaseWidget::changeEvent(event);
}
// void Window::changeEvent(QEvent *event)
//{
// if (!this->isActiveWindow()) {
// this->lostFocus.invoke();
// }
// BaseWidget::changeEvent(event);
//}
void Window::leaveEvent(QEvent *event)
{
this->lostFocus.invoke();
BaseWidget::leaveEvent(event);
}
// void Window::leaveEvent(QEvent *event)
//{
// this->lostFocus.invoke();
// BaseWidget::leaveEvent(event);
//}
void Window::refreshTheme()
{