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