MCPcopy Create free account
hub / github.com/cc20110101/RedisView / recurSortItem

Method recurSortItem

src/RedisView/Model/KeyTreeModel.cpp:85–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void 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
98void KeyTreeModel::sortItem(KeyTreeItem *item, Qt::SortOrder order) {
99

Callers

nothing calls this directly

Calls 2

childCountMethod · 0.45
childMethod · 0.45

Tested by

no test coverage detected