| 41 | #include "Code/Resources.h" |
| 42 | |
| 43 | static int GetDepth(const QAbstractItemModel *model, const QModelIndex &idx) |
| 44 | { |
| 45 | if(idx == QModelIndex()) |
| 46 | return 0; |
| 47 | |
| 48 | return 1 + GetDepth(model, model->parent(idx)); |
| 49 | } |
| 50 | |
| 51 | static bool CompareModelIndex(const QModelIndex &a, const QModelIndex &b) |
| 52 | { |
no test coverage detected