Port away from QTest::qWaitForWindowActive, it's Qt specific

Simpliy moved it to Platform_qt
This commit is contained in:
Sergio Martins
2022-04-11 11:37:18 +01:00
parent 52d91d350b
commit 31db3d9562
6 changed files with 30 additions and 3 deletions

View File

@@ -13,6 +13,7 @@
#include "docks_export.h"
#include "Platform.h"
#include "Window_qt.h"
namespace KDDockWidgets {
@@ -28,6 +29,10 @@ public:
QVector<std::shared_ptr<Window>> windows() const override;
std::shared_ptr<Window> qobjectAsWindow(QObject *) const override;
virtual std::shared_ptr<Window> windowFromQWindow(QWindow *) const = 0;
#ifdef DOCKS_DEVELOPER_MODE
bool tests_waitForWindowActive(std::shared_ptr<Window>, int timeout = 5000) const override;
#endif
};
}