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

@@ -53,6 +53,13 @@ public:
/// @brief Creates and returns the default FrameworkWidgetFactory
virtual FrameworkWidgetFactory *createDefaultFrameworkWidgetFactory() = 0;
#ifdef DOCKS_DEVELOPER_MODE
/// @brief Waits for the specified window to be active (have the keyboard focus)
/// Window::isActive() should return true
/// @sa Window::isActive()
virtual bool tests_waitForWindowActive(std::shared_ptr<Window>, int timeout = 5000) const = 0;
#endif
public:
/// @brief This signal is emitted when the currently focused view changes
KDBindings::Signal<std::shared_ptr<ViewWrapper>> focusedViewChanged;