tests: Remove some asQWidget() calls
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user