| 83 | } |
| 84 | |
| 85 | void KeyTreeModel::recurSortItem(KeyTreeItem *item, Qt::SortOrder order) { |
| 86 | if(item == nullptr) |
| 87 | return; |
| 88 | |
| 89 | if(item->childCount() == 0) |
| 90 | return; |
| 91 | |
| 92 | for(int i = 0; i < item->childCount(); ++i) { |
| 93 | sortItem(item->child(i),order); |
| 94 | recurSortItem(item->child(i)); |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | void KeyTreeModel::sortItem(KeyTreeItem *item, Qt::SortOrder order) { |
| 99 |
nothing calls this directly
no test coverage detected