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

Method indexOf

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

Source from the content-addressed store, hash-verified

174}
175
176int TabBar::indexOf(const QString &fileName)
177{
178 int index = -1;
179 for (int i = 0; i < d->tabBar->count(); ++i) {
180 if (d->tabBar->tabToolTip(i) != fileName)
181 continue;
182
183 index = i;
184 break;
185 }
186
187 return index;
188}
189
190QString TabBar::indexFile(int index) const
191{

Callers 12

initUIMethod · 0.45
rowOfSessionMethod · 0.45
getValidLocatorMethod · 0.45
showDiagnosticTipMethod · 0.45
handleShowOpenedFilesMethod · 0.45
onSplitRequestedMethod · 0.45
executeWithTextEditMethod · 0.45
removeItemMethod · 0.45
stdErrorMethod · 0.45

Calls 1

countMethod · 0.45

Tested by

no test coverage detected