Abstract away a call to qApp->activePopupWidget()
It's now generic and doesn't depend on QApplication. Removes an ifdef.
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
#include "KDDockWidgets.h"
|
||||
#include "qtwidgets/DebugWindow_p.h"
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
static KDDockWidgets::Platform_qtwidgets s_platformQtWidgets;
|
||||
|
||||
using namespace KDDockWidgets;
|
||||
@@ -35,3 +37,8 @@ const char *Platform_qtwidgets::name() const
|
||||
{
|
||||
return "qtwidgets";
|
||||
}
|
||||
|
||||
bool Platform_qtwidgets::hasActivePopup() const
|
||||
{
|
||||
return qApp->activePopupWidget() != nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user