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 | #include <NodeList.h> | 22 | #include <NodeList.h> |
| 23 | #include <OffscreenUi.h> | 23 | #include <OffscreenUi.h> |
| 24 | #include <UserActivityLogger.h> | 24 | #include <UserActivityLogger.h> |
| 25 | #include "WarningsSuppression.h" | ||
| 25 | 26 | ||
| 26 | static const int AUTO_REFRESH_INTERVAL = 1000; | 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 | connect(request, &GetAllMappingsRequest::finished, this, [callback](GetAllMappingsRequest* request) mutable { | 169 | connect(request, &GetAllMappingsRequest::finished, this, [callback](GetAllMappingsRequest* request) mutable { |
| 169 | auto mappings = request->getMappings(); | 170 | auto mappings = request->getMappings(); |
| 171 | |||
| 172 | OVERTE_IGNORE_DEPRECATED_BEGIN | ||
| 173 | // Still using QScriptEngine | ||
| 170 | auto map = callback.engine()->newObject(); | 174 | auto map = callback.engine()->newObject(); |
| 175 | OVERTE_IGNORE_DEPRECATED_END | ||
| 171 | 176 | ||
| 172 | for (auto& kv : mappings ) { | 177 | for (auto& kv : mappings ) { |
| 173 | map.setProperty(kv.first, kv.second.hash); | 178 | map.setProperty(kv.first, kv.second.hash); |