14 #include <QApplication> 21 , LeaveTimer_ (new QTimer (this))
23 watched->installEventFilter (
this);
25 LeaveTimer_->setSingleShot (
true);
36 return QApplication::style ()->styleHint (QStyle::SH_ToolTip_WakeUpDelay) * 2;
43 LeaveTimer_->start (timeout.value_or (DefaultTimeout ()));
53 switch (event->type ())
56 ContainsMouse_ =
true;
60 ContainsMouse_ =
false;
61 LeaveTimer_->start (DefaultTimeout ());
UTIL_GUI_API UnhoverDeleteMixin(QObject *parent, const char *slot=SLOT(deleteLater()))
Creates the mixin for the given parent widget.
void UTIL_GUI_API Start(std::optional< int > timeout={})
Manually starts the timer.
void UTIL_GUI_API Stop()
Stops the previously started timer.
bool eventFilter(QObject *, QEvent *) override