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

Method setData

src/RedisView/Model/KeyTreeModel.cpp:246–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246bool KeyTreeModel::setData(const QModelIndex &index, const QVariant &value, int role)
247{
248 if (role != Qt::EditRole)
249 return false;
250
251 KeyTreeItem *item = getItem(index);
252 bool result = item->setData(index.column(), value);
253
254 if (result)
255 emit dataChanged(index, index);
256
257 return result;
258}
259
260bool KeyTreeModel::setHeaderData(int section, Qt::Orientation orientation,
261 const QVariant &value, int role)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected