MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / switchConsole

Method switchConsole

src/plugins/console/consolemanager.cpp:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void 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
147void ConsoleManagerPrivate::switchConsole(const QUuid &uuid) {
148 if (auto console = q->findConsole(uuid.toString())) {

Callers 1

selectConsoleMethod · 0.80

Calls 4

findConsoleMethod · 0.80
setFocusMethod · 0.80
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected