MCPcopy Create free account
hub / github.com/KDE/kdiff3 / nextSibling

Method nextSibling

src/directorymergewindow.cpp:1262–1269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1260}
1261
1262QModelIndex DirectoryMergeWindow::DirectoryMergeWindowPrivate::nextSibling(const QModelIndex& mi)
1263{
1264 QModelIndex miParent = mi.parent();
1265 qint32 currentIdx = mi.row();
1266 if(currentIdx + 1 < mi.model()->rowCount(miParent))
1267 return mi.model()->index(mi.row() + 1, 0, miParent); // next child of parent
1268 return QModelIndex();
1269}
1270
1271// Iterate through the complete tree. Start by specifying QListView::firstChild().
1272QModelIndex DirectoryMergeWindow::DirectoryMergeWindowPrivate::treeIterator(QModelIndex mi, bool bVisitChildren, bool bFindInvisible)

Callers

nothing calls this directly

Calls 3

rowCountMethod · 0.80
indexMethod · 0.80
parentMethod · 0.45

Tested by

no test coverage detected