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

Method insertRow

src/RedisView/Model/KeyTreeModel.cpp:190–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190bool KeyTreeModel::insertRow(KeyTreeItem *item) {
191 if(item && item->parent()) {
192 QModelIndex parentQModel = indexFromItem(item->parent());
193 beginInsertRows(parentQModel, item->parent()->childCount(), item->parent()->childCount());
194 item->parent()->appendChildren(item);
195 endInsertRows();
196 return true;
197 }
198 return false;
199}
200
201QModelIndex KeyTreeModel::parent(const QModelIndex &index) const
202{

Callers 8

initKeyListDataMethod · 0.45
recvDataMethod · 0.45
initKeyViewMethod · 0.45
addMethod · 0.45
addHeadMethod · 0.45
addTailMethod · 0.45
addMethod · 0.45
appendValueMethod · 0.45

Calls 3

appendChildrenMethod · 0.80
parentMethod · 0.45
childCountMethod · 0.45

Tested by

no test coverage detected