| 170 | } |
| 171 | |
| 172 | void MainWindow::focusEditor() |
| 173 | { |
| 174 | Q_D(const MainWindow); |
| 175 | |
| 176 | if (!d->activeView) { |
| 177 | return; |
| 178 | } |
| 179 | if (auto* const widget = d->activeView->widget()) { |
| 180 | widget->setFocus(Qt::ShortcutFocusReason); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | void MainWindow::initializeStatusBar() |
| 185 | { |