Prevent tooltips from getting focus even with sloppy focus

This commit is contained in:
baldurk
2026-08-13 17:46:44 +01:00
parent 7fab2e0e0a
commit 4baf001be9
+1 -1
View File
@@ -60,7 +60,7 @@ RDToolTip::RDToolTip(QWidget *listener) : QLabel(NULL), mouseListener(listener)
int margin = style()->pixelMetric(QStyle::PM_ToolTipLabelFrameWidth, NULL, this);
int opacity = style()->styleHint(QStyle::SH_ToolTipLabel_Opacity, NULL, this);
setWindowFlags(Qt::ToolTip);
setWindowFlags(Qt::ToolTip | Qt::WindowDoesNotAcceptFocus);
setAttribute(Qt::WA_TransparentForMouseEvents);
setForegroundRole(QPalette::ToolTipText);
setBackgroundRole(QPalette::ToolTipBase);