tests: Move isGammaray() into Platform_qt
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user