Changeset View
Changeset View
Standalone View
Standalone View
kate/katemainwindow.cpp
Show First 20 Lines • Show All 1134 Lines • ▼ Show 20 Line(s) | 1134 | { | |||
---|---|---|---|---|---|
1135 | if (m_viewManager->activeViewSpace()) { | 1135 | if (m_viewManager->activeViewSpace()) { | ||
1136 | m_viewManager->activeViewSpace()->focusNextTab(); | 1136 | m_viewManager->activeViewSpace()->focusNextTab(); | ||
1137 | } | 1137 | } | ||
1138 | } | 1138 | } | ||
1139 | 1139 | | |||
1140 | void KateMainWindow::slotQuickOpen() | 1140 | void KateMainWindow::slotQuickOpen() | ||
1141 | { | 1141 | { | ||
1142 | /** | 1142 | /** | ||
1143 | * toggle back to view manager when when quick open is already shown | ||||
1144 | */ | ||||
1145 | if (m_mainStackedWidget->currentWidget() == m_quickOpen) { | ||||
1146 | m_mainStackedWidget->setCurrentWidget(m_viewManager); | ||||
1147 | centralWidget()->setFocusProxy(m_viewManager); | ||||
1148 | return; | ||||
1149 | } | ||||
1150 | | ||||
1151 | /** | ||||
1143 | * show quick open and pass focus to it | 1152 | * show quick open and pass focus to it | ||
1144 | */ | 1153 | */ | ||
1145 | m_quickOpen->update(); | 1154 | m_quickOpen->update(); | ||
1146 | m_mainStackedWidget->setCurrentWidget(m_quickOpen); | 1155 | m_mainStackedWidget->setCurrentWidget(m_quickOpen); | ||
1147 | centralWidget()->setFocusProxy(m_quickOpen); | 1156 | centralWidget()->setFocusProxy(m_quickOpen); | ||
1148 | m_quickOpen->setFocus(); | 1157 | m_quickOpen->setFocus(); | ||
1149 | } | 1158 | } | ||
1150 | 1159 | | |||
Show All 34 Lines |