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

Method closeAllTab

src/plugins/codeeditor/gui/tabbar.cpp:242–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void TabBar::closeAllTab(const QStringList &exceptList, bool silent)
243{
244 QStringList tabList;
245 for (int i = 0; i < d->tabBar->count(); ++i) {
246 auto file = d->tabBar->tabToolTip(i);
247 if (exceptList.contains(file))
248 continue;
249
250 tabList << file;
251 }
252
253 for (const auto &tab : tabList)
254 removeTab(tab, silent);
255}
256
257void TabBar::setCloseButtonVisible(bool visible)
258{

Callers 2

closeAllEditorMethod · 0.80
showMenuMethod · 0.80

Calls 2

countMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected