mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 07:26:34 +00:00
Prevent tooltips from getting focus even with sloppy focus
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user