501
507
return QModelIndex(); // nothing found -> end of tree
506
512
if ( model->rowCount( current ) == 0 ) {
510
return lastChildOf( model, model->index( model->rowCount( current ) - 1, 0, current ) );
516
return lastChildOfModel( model, model->index( model->rowCount( current ) - 1, 0, current ) );
513
519
static QModelIndex indexAbove( QAbstractItemModel *model, const QModelIndex ¤t )