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

Method rowCount

kdevplatform/util/placeholderitemproxymodel.cpp:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92int PlaceholderItemProxyModel::rowCount(const QModelIndex& parent) const
93{
94 if (!sourceModel())
95 return 0;
96
97 // only flat models supported for now, assert early in case that's not true
98 Q_ASSERT(!parent.isValid());
99 Q_UNUSED(parent);
100 return sourceModel()->rowCount() + 1;
101}
102
103bool KDevelop::PlaceholderItemProxyModel::hasChildren(const QModelIndex& parent) const
104{

Callers 6

sourceRowCountMethod · 0.45
isPlaceholderRowMethod · 0.45
siblingMethod · 0.45
indexMethod · 0.45
rowsAboutToBeInsertedMethod · 0.45

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected