| 1311 | } |
| 1312 | |
| 1313 | void MainWindow::closeAllToRight() |
| 1314 | { |
| 1315 | const int index = dockedEditor->currentDockArea()->currentIndex(); |
| 1316 | const int total = dockedEditor->currentDockArea()->dockWidgetsCount(); |
| 1317 | QVector<ScintillaNext *> editors; |
| 1318 | |
| 1319 | for (int i = index + 1; i < total; ++i) { |
| 1320 | auto editor = qobject_cast<ScintillaNext *>(dockedEditor->currentDockArea()->dockWidget(i)->widget()); |
| 1321 | editors.append(editor); |
| 1322 | } |
| 1323 | |
| 1324 | if (checkEditorsBeforeClose(editors)) { |
| 1325 | for (ScintillaNext *editor : editors) { |
| 1326 | editor->close(); |
| 1327 | } |
| 1328 | } |
| 1329 | } |
| 1330 | |
| 1331 | bool MainWindow::saveCurrentFile() |
| 1332 | { |
nothing calls this directly
no test coverage detected