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:
Sergio Martins
2022-04-04 16:43:01 +01:00
parent 495ef0dd6a
commit 631736b202
5 changed files with 19 additions and 8 deletions

View File

@@ -24,6 +24,7 @@ public:
Platform_qtwidgets();
~Platform_qtwidgets() override;
const char *name() const override;
bool hasActivePopup() const override;
};
}