moved the tooltip close logic to basewidget
This commit is contained in:
+12
-13
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user