History

Attachment dialog

Brad Davis committed 10 years ago

Commit 664100b1 parent 881a94c14 files · +774 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 14 files). Show all

Unified · Split

interface/src/Application.cpp+5−0
@@ -1186,6 +1186,7 @@ void Application::initializeUi() { · 1185 unmodified lines
11861186 UpdateDialog::registerType();
11871187 qmlRegisterType<Preference>("Hifi", 1, 0, "Preference");
11881188
1189+
11891190 auto offscreenUi = DependencyManager::get<OffscreenUi>();
11901191 offscreenUi->create(_offscreenContext->getContext());
11911192 offscreenUi->setProxyWindow(_window->windowHandle());
@@ -1842,6 +1843,10 @@ void Application::keyPressEvent(QKeyEvent* event) { · 650 unmodified lines
18421843
18431844 case Qt::Key_X:
18441845 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");
18451850 // placeholder for dialogs being converted to QML.
18461851 }
18471852 break;