History

Make it easier for QML dialogs to access the global menu, manipulate the overlay desktop

Brad Davis committed 10 years ago

Commit e6b59cb1 parent 41dcc3d2 files · +16 −12Browse files

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

Unified · Split

interface/src/Application.cpp+10−11
@@ -1173,7 +1173,6 @@ void Application::initializeUi() { · 1172 unmodified lines
11731173 offscreenUi->setProxyWindow(_window->windowHandle());
11741174 offscreenUi->setBaseUrl(QUrl::fromLocalFile(PathUtils::resourcesPath() + "/qml/"));
11751175 offscreenUi->load("Root.qml");
1176− offscreenUi->load("RootMenu.qml");
11771176 // FIXME either expose so that dialogs can set this themselves or
11781177 // do better detection in the offscreen UI of what has focus
11791178 offscreenUi->setNavigationFocused(false);
@@ -2033,16 +2032,16 @@ void Application::keyPressEvent(QKeyEvent* event) { · 853 unmodified lines
20332032
20342033 break;
20352034 }
2036− case Qt::Key_Escape: {
2037− getActiveDisplayPlugin()->abandonCalibration();
2038− if (!event->isAutoRepeat()) {
2039− // this starts the HFCancelEvent
2040− HFBackEvent startBackEvent(HFBackEvent::startType());
2041− sendEvent(this, &startBackEvent);
2042− }
2043−
2044− break;
2045− }
2035+// case Qt::Key_Escape: {
2036+// getActiveDisplayPlugin()->abandonCalibration();
2037+// if (!event->isAutoRepeat()) {
2038+// // this starts the HFCancelEvent
2039+// HFBackEvent startBackEvent(HFBackEvent::startType());
2040+// sendEvent(this, &startBackEvent);
2041+// }
2042+//
2043+// break;
2044+// }
20462045
20472046 default:
20482047 event->ignore();