Showing the changes to interface/src/scripting/AssetMappingsScriptingInterface.cpp (1 of 16 files). Show all
Unified · Split
| @@ -22,6 +22,7 @@ · 21 unmodified lines | ||
| 22 | 22 | #include <NodeList.h> |
| 23 | 23 | #include <OffscreenUi.h> |
| 24 | 24 | #include <UserActivityLogger.h> |
| 25 | +#include "WarningsSuppression.h" | |
| 25 | 26 | |
| 26 | 27 | static const int AUTO_REFRESH_INTERVAL = 1000; |
| 27 | 28 | |
| @@ -167,7 +168,11 @@ void AssetMappingsScriptingInterface::getAllMappings(QJSValue callback) { · 139 unmodified lines | ||
| 167 | 168 | |
| 168 | 169 | connect(request, &GetAllMappingsRequest::finished, this, [callback](GetAllMappingsRequest* request) mutable { |
| 169 | 170 | auto mappings = request->getMappings(); |
| 171 | + | |
| 172 | + OVERTE_IGNORE_DEPRECATED_BEGIN | |
| 173 | + // Still using QScriptEngine | |
| 170 | 174 | auto map = callback.engine()->newObject(); |
| 175 | + OVERTE_IGNORE_DEPRECATED_END | |
| 171 | 176 | |
| 172 | 177 | for (auto& kv : mappings ) { |
| 173 | 178 | map.setProperty(kv.first, kv.second.hash); |