Fix for build break, QJSEngine::setObjectOwnership does not exist in Qt5. Only in version 6.

This commit is contained in:
harry 2024-01-30 06:50:40 -05:00
parent 6b96016047
commit 19abb0b249
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}