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

Method getItem

src/RedisView/Model/KeyTreeModel.cpp:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136KeyTreeItem *KeyTreeModel::getItem(const QModelIndex &index) const
137{
138 if (index.isValid()) {
139 KeyTreeItem *item = static_cast<KeyTreeItem*>(index.internalPointer());
140 if (item)
141 return item;
142 }
143 return rootItem;
144}
145
146KeyTreeItem *KeyTreeModel::getRootItem() const
147{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected