Fix for build break, QJSEngine::setObjectOwnership does not exist in Qt5. Only in version 6.
This commit is contained in:
parent
6b96016047
commit
19abb0b249
|
@ -256,7 +256,9 @@ QJSValue EmuScriptObject::getScreenPixel(int x, int y, bool useBackup)
|
|||
|
||||
QJSValue jsVal = engine->newQObject(pixelObj);
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6,0,0)
|
||||
QJSEngine::setObjectOwnership( pixelObj, QJSEngine::JavaScriptOwnership);
|
||||
#endif
|
||||
|
||||
return jsVal;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue