| 136 | } |
| 137 | |
| 138 | void ConsoleManagerPrivate::switchConsole(const QModelIndex &index, const QModelIndex &previous) |
| 139 | { |
| 140 | auto id = index.data(IdRole).toString(); |
| 141 | if (auto console = q->findConsole(id)) { |
| 142 | console->setFocus(); |
| 143 | consoleStackedWidget->setCurrentWidget(console); |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | void ConsoleManagerPrivate::switchConsole(const QUuid &uuid) { |
| 148 | if (auto console = q->findConsole(uuid.toString())) { |
no test coverage detected