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

Method removeConsole

src/plugins/console/consolemanager.cpp:122–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void 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
138void ConsoleManagerPrivate::switchConsole(const QModelIndex &index, const QModelIndex &previous)
139{

Callers

nothing calls this directly

Calls 8

findConsoleMethod · 0.80
removeWidgetMethod · 0.80
rowMethod · 0.80
currentIndexMethod · 0.45
isValidMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected