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

Method sibling

kdevplatform/util/placeholderitemproxymodel.cpp:152–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152QModelIndex PlaceholderItemProxyModel::sibling(int row, int column, const QModelIndex& idx) const
153{
154 const bool isPlaceHolderRow = (sourceModel() ? row == sourceModel()->rowCount() : false);
155 if (isPlaceHolderRow) {
156 return index(row, column, QModelIndex());
157 }
158 return QIdentityProxyModel::sibling(row, column, idx);
159}
160
161QModelIndex PlaceholderItemProxyModel::mapToSource(const QModelIndex& proxyIndex) const
162{

Callers 15

selectionChangedMethod · 0.80
launchModeChangedMethod · 0.80
pathFromIndexMethod · 0.80
copyRevisionMethod · 0.80
dataMethod · 0.80
sizeHintForColumnMethod · 0.80
eventFilterMethod · 0.80
firstColumnFunction · 0.80
matchColorMethod · 0.80
partialExpandRectMethod · 0.80
placeExpandingWidgetMethod · 0.80

Calls 3

QModelIndexClass · 0.70
indexFunction · 0.50
rowCountMethod · 0.45

Tested by

no test coverage detected