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

Method switchTab

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

Source from the content-addressed store, hash-verified

213}
214
215void TabBar::switchTab(const QString &fileName)
216{
217 int index = indexOf(fileName);
218 if (-1 != index)
219 d->tabBar->setCurrentIndex(index);
220}
221
222void TabBar::removeTab(const QString &fileName, bool silent)
223{

Callers 3

gotoNextPositionMethod · 0.80
gotoPreviousPositionMethod · 0.80
openFileMethod · 0.80

Calls 2

indexOfFunction · 0.85
setCurrentIndexMethod · 0.45

Tested by

no test coverage detected