| 120 | } |
| 121 | |
| 122 | void ConsoleManagerPrivate::removeConsole() |
| 123 | { |
| 124 | auto index = consoleListView->currentIndex(); |
| 125 | if (!index.isValid()) |
| 126 | return; |
| 127 | |
| 128 | auto id = index.data(IdRole).toString(); |
| 129 | if (auto console = q->findConsole(id)) { |
| 130 | consoleStackedWidget->removeWidget(console); |
| 131 | console->deleteLater(); |
| 132 | } |
| 133 | |
| 134 | model->removeRow(index.row()); |
| 135 | consoleMap.remove(id); |
| 136 | } |
| 137 | |
| 138 | void ConsoleManagerPrivate::switchConsole(const QModelIndex &index, const QModelIndex &previous) |
| 139 | { |
nothing calls this directly
no test coverage detected