FB16831 qml-related warnings in log
Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -2924,6 +2924,15 @@ void Application::initializeUi() { · 2923 unmodified lines | |||
| 2924 | 2924 | ||
| 2925 | // Pre-create a couple of Web3D overlays to speed up tablet UI | 2925 | // Pre-create a couple of Web3D overlays to speed up tablet UI |
| 2926 | auto offscreenSurfaceCache = DependencyManager::get<OffscreenQmlSurfaceCache>(); | 2926 | auto offscreenSurfaceCache = DependencyManager::get<OffscreenQmlSurfaceCache>(); |
| 2927 | offscreenSurfaceCache->setOnRootContextCreated([&](const QString& rootObject, QQmlContext* surfaceContext) { | ||
| 2928 | if (rootObject == TabletScriptingInterface::QML) { | ||
| 2929 | // in Qt 5.10.0 there is already an "Audio" object in the QML context | ||
| 2930 | // though I failed to find it (from QtMultimedia??). So.. let it be "AudioScriptingInterface" | ||
| 2931 | surfaceContext->setContextProperty("AudioScriptingInterface", DependencyManager::get<AudioScriptingInterface>().data()); | ||
| 2932 | surfaceContext->setContextProperty("Account", AccountServicesScriptingInterface::getInstance()); // DEPRECATED - TO BE REMOVED | ||
| 2933 | } | ||
| 2934 | }); | ||
| 2935 | |||
| 2927 | offscreenSurfaceCache->reserve(TabletScriptingInterface::QML, 1); | 2936 | offscreenSurfaceCache->reserve(TabletScriptingInterface::QML, 1); |
| 2928 | offscreenSurfaceCache->reserve(Web3DOverlay::QML, 2); | 2937 | offscreenSurfaceCache->reserve(Web3DOverlay::QML, 2); |
| 2929 | 2938 | ||