-----------------------------------------------------------------------------
| 402 | |
| 403 | //----------------------------------------------------------------------------- |
| 404 | QList<QPersistentModelIndex> ctkModelTester::persistentModelIndexes(const QModelIndex& index)const |
| 405 | { |
| 406 | Q_D(const ctkModelTester); |
| 407 | QList<QPersistentModelIndex> list; |
| 408 | for (int i = 0; i < d->Model->rowCount(index); ++i) |
| 409 | { |
| 410 | for (int j = 0; j < d->Model->columnCount(index); ++j) |
| 411 | { |
| 412 | QPersistentModelIndex child = d->Model->index(i, j, index); |
| 413 | list.append(child); |
| 414 | list += this->ctkModelTester::persistentModelIndexes(child); |
| 415 | } |
| 416 | } |
| 417 | return list; |
| 418 | } |
| 419 | |
| 420 | //----------------------------------------------------------------------------- |
| 421 | void ctkModelTester::onLayoutAboutToBeChanged() |
no test coverage detected