fix: set scanPopup flags to what's is needed instead of Qt::Popup
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled

This commit is contained in:
shenleban tongying 2024-10-07 05:20:56 -04:00
parent 94ea6c570c
commit 7f497b0cdf

View file

@ -22,14 +22,13 @@
#endif #endif
#include "base_type.hh" #include "base_type.hh"
/// We use different window flags under Windows and X11 due to slight differences
/// in their behavior on those platforms.
static const Qt::WindowFlags defaultUnpinnedWindowFlags = static const Qt::WindowFlags defaultUnpinnedWindowFlags =
#if defined( Q_OS_WIN ) #if defined( Q_OS_WIN )
Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint
#else #else
Qt::Popup Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint
#endif #endif
; ;