tests: Port away from a few Qt specific waitForEvent

Removes a bunch of asQWidget() from the tests
This commit is contained in:
Sergio Martins
2022-04-11 15:14:51 +01:00
parent 31db3d9562
commit 90bd78846a
6 changed files with 123 additions and 98 deletions

View File

@@ -32,6 +32,10 @@ public:
#ifdef DOCKS_DEVELOPER_MODE
bool tests_waitForWindowActive(std::shared_ptr<Window>, int timeout = 5000) const override;
bool tests_waitForEvent(QObject *w, QEvent::Type type, int timeout = 5000) const override;
bool tests_waitForEvent(View *, QEvent::Type type, int timeout = 5000) const override;
bool tests_waitForResize(View *, int timeout = 2000) const override;
bool tests_waitForResize(Controller *, int timeout = 2000) const override;
#endif
};