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

Method index

src/RedisView/Model/KeyTreeModel.cpp:161–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161QModelIndex KeyTreeModel::index(int row, int column, const QModelIndex &parent) const
162{
163 if(!hasIndex(row, column, parent))
164 return QModelIndex();
165
166 KeyTreeItem *parentItem = getItem(parent);
167 KeyTreeItem *childItem = parentItem->child(row);
168 if (childItem)
169 return createIndex(row, column, childItem);
170 else
171 return QModelIndex();
172}
173
174bool KeyTreeModel::removeChild(KeyTreeItem * item, int row) {
175 if(item) {

Callers

nothing calls this directly

Calls 1

childMethod · 0.45

Tested by

no test coverage detected