Showing the changes to interface/src/Application.cpp (1 of 14 files). Show all
Unified · Split
| @@ -1186,6 +1186,7 @@ void Application::initializeUi() { · 1185 unmodified lines | |||
| 1186 | UpdateDialog::registerType(); | 1186 | UpdateDialog::registerType(); |
| 1187 | qmlRegisterType<Preference>("Hifi", 1, 0, "Preference"); | 1187 | qmlRegisterType<Preference>("Hifi", 1, 0, "Preference"); |
| 1188 | 1188 | ||
| 1189 | |||
| 1189 | auto offscreenUi = DependencyManager::get<OffscreenUi>(); | 1190 | auto offscreenUi = DependencyManager::get<OffscreenUi>(); |
| 1190 | offscreenUi->create(_offscreenContext->getContext()); | 1191 | offscreenUi->create(_offscreenContext->getContext()); |
| 1191 | offscreenUi->setProxyWindow(_window->windowHandle()); | 1192 | offscreenUi->setProxyWindow(_window->windowHandle()); |
| @@ -1842,6 +1843,10 @@ void Application::keyPressEvent(QKeyEvent* event) { · 650 unmodified lines | |||
| 1842 | 1843 | ||
| 1843 | case Qt::Key_X: | 1844 | case Qt::Key_X: |
| 1844 | if (isShifted && isMeta) { | 1845 | if (isShifted && isMeta) { |
| 1846 | auto offscreenUi = DependencyManager::get<OffscreenUi>(); | ||
| 1847 | offscreenUi->getRootContext()->engine()->clearComponentCache(); | ||
| 1848 | offscreenUi->load("hifi/dialogs/AttachmentsDialog.qml"); | ||
| 1849 | // OffscreenUi::information("Debugging", "Component cache cleared"); | ||
| 1845 | // placeholder for dialogs being converted to QML. | 1850 | // placeholder for dialogs being converted to QML. |
| 1846 | } | 1851 | } |
| 1847 | break; | 1852 | break; |