MCPcopy Create free account
hub / github.com/KDE/kdevelop / rowCount

Method rowCount

plugins/quickopen/quickopenmodel.cpp:248–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248int QuickOpenModel::rowCount(const QModelIndex& i) const
249{
250 if (i.isValid()) {
251 return 0;
252 }
253
254 int count = 0;
255 for (const ProviderEntry& provider : m_providers) {
256 if (provider.enabled) {
257 count += provider.provider->itemCount();
258 }
259 }
260
261 return count;
262}
263
264int QuickOpenModel::unfilteredRowCount() const
265{

Callers 5

recursiveRowCountFunction · 0.45
matchingIndexesFunction · 0.45
updateTimerIntervalMethod · 0.45
slotDirtyMethod · 0.45
testDefaultValueMethod · 0.45

Calls 2

isValidMethod · 0.45
itemCountMethod · 0.45

Tested by 1

testDefaultValueMethod · 0.36