MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / closeAllToRight

Method closeAllToRight

src/dialogs/MainWindow.cpp:1313–1329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1311}
1312
1313void 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
1331bool MainWindow::saveCurrentFile()
1332{

Callers

nothing calls this directly

Calls 2

currentDockAreaMethod · 0.80
closeMethod · 0.80

Tested by

no test coverage detected