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

Method itemFromIndex

src/RedisView/Model/KeyTreeModel.cpp:125–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125KeyTreeItem *KeyTreeModel::itemFromIndex(const QModelIndex &index) const {
126 return index.isValid() ? getItem(index): nullptr;
127}
128
129QModelIndex KeyTreeModel::indexFromItem(const KeyTreeItem *item) const {
130 if(!item || item == rootItem)

Callers 3

showTreeRightMenuMethod · 0.80
delMethod · 0.80
treeClickedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected