tests: Remove some asQWidget() calls

This commit is contained in:
Sergio Martins
2022-04-13 22:28:04 +01:00
parent 90bd78846a
commit 664798ee6e
4 changed files with 23 additions and 15 deletions

View File

@@ -121,4 +121,10 @@ bool Platform_qt::tests_waitForResize(Controller *c, int timeout) const
return tests_waitForResize(c->view(), timeout);
}
bool Platform_qt::tests_waitForEvent(std::shared_ptr<Window> window, QEvent::Type type, int timeout) const
{
auto windowqt = static_cast<Window_qt *>(window.get());
return tests_waitForEvent(windowqt->qtWindow(), type, timeout);
}
#endif

View File

@@ -34,6 +34,7 @@ public:
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_waitForEvent(std::shared_ptr<Window>, 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