tests: Move isGammaray() into Platform_qt

This commit is contained in:
Sergio Martins
2022-04-29 15:52:46 +01:00
parent 721d344533
commit fcf02fc8bf
3 changed files with 11 additions and 8 deletions

View File

@@ -186,4 +186,12 @@ void Platform_qt::tests_deinitPlatform_impl()
delete qApp;
}
/*static*/
extern quintptr Q_CORE_EXPORT qtHookData[];
bool Platform_qt::isGammaray()
{
static bool is = qtHookData[3] != 0;
return is;
}
#endif

View File

@@ -34,6 +34,7 @@ public:
void sendEvent(View *, QEvent *) const override;
#ifdef DOCKS_DEVELOPER_MODE
static bool isGammaray();
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;