diff --git a/scanpopup.cc b/scanpopup.cc index 84b1e2a8..8e1f2d6d 100644 --- a/scanpopup.cc +++ b/scanpopup.cc @@ -26,7 +26,7 @@ using std::wstring; /// in their behavior on those platforms. static Qt::WindowFlags popupWindowFlags = -#if defined (Q_OS_WIN) || defined (Q_OS_MAC) +#if defined (Q_OS_WIN) || ( defined (Q_OS_MAC) && QT_VERSION < QT_VERSION_CHECK( 5, 3, 0 ) ) Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint #else Qt::Popup