| 1260 | } |
| 1261 | |
| 1262 | QModelIndex 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(). |
| 1272 | QModelIndex DirectoryMergeWindow::DirectoryMergeWindowPrivate::treeIterator(QModelIndex mi, bool bVisitChildren, bool bFindInvisible) |