| 6 | { |
| 7 | |
| 8 | QModelIndexList flatIndex(const QAbstractItemModel* model, int column, |
| 9 | const QModelIndex& parent) |
| 10 | { |
| 11 | QModelIndexList index; |
| 12 | for (std::size_t i = 0; i < model->rowCount(parent); ++i) { |
| 13 | index.append(model->index(i, column, parent)); |
| 14 | index.append(flatIndex(model, column, index.back())); |
| 15 | } |
| 16 | return index; |
| 17 | } |
| 18 | |
| 19 | static QModelIndexList visibleIndexImpl(QTreeView* view, int column, |
| 20 | const QModelIndex& parent) |
no test coverage detected