Showing the changes to interface/src/Application.cpp (1 of 7 files). Show all
Unified · Split
| @@ -2320,9 +2320,10 @@ void Application::initializeUi() { · 2319 unmodified lines | |||
| 2320 | 2320 | ||
| 2321 | setupPreferences(); | 2321 | setupPreferences(); |
| 2322 | 2322 | ||
| 2323 | // For some reason there is already an "Application" object in the QML context, | 2323 | // in Qt 5.10.0 there is already an "Audio" object in the QML context |
| 2324 | // though I can't find it. Hence, "ApplicationInterface" | 2324 | // though I failed to find it (from QtMultimedia??). So.. let it be "AudioScriptingInterface" |
| 2325 | surfaceContext->setContextProperty("Audio", DependencyManager::get<AudioScriptingInterface>().data()); | 2325 | surfaceContext->setContextProperty("AudioScriptingInterface", DependencyManager::get<AudioScriptingInterface>().data()); |
| 2326 | |||
| 2326 | surfaceContext->setContextProperty("AudioStats", DependencyManager::get<AudioClient>()->getStats().data()); | 2327 | surfaceContext->setContextProperty("AudioStats", DependencyManager::get<AudioClient>()->getStats().data()); |
| 2327 | surfaceContext->setContextProperty("AudioScope", DependencyManager::get<AudioScope>().data()); | 2328 | surfaceContext->setContextProperty("AudioScope", DependencyManager::get<AudioScope>().data()); |
| 2328 | 2329 | ||