Implemented a new, better looking tooltip. (#158)
* Implemented a new, better looking tooltip. * Pajlada fix. * Fixed dragging behaving incorrectly. * Fixed out of focus hovering getting stuck.
This commit is contained in:
@@ -107,6 +107,21 @@ void Window::closeEvent(QCloseEvent *)
|
||||
this->closed();
|
||||
}
|
||||
|
||||
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::refreshTheme()
|
||||
{
|
||||
QPalette palette;
|
||||
|
||||
Reference in New Issue
Block a user