| 244 | } |
| 245 | |
| 246 | bool 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 | |
| 260 | bool KeyTreeModel::setHeaderData(int section, Qt::Orientation orientation, |
| 261 | const QVariant &value, int role) |
nothing calls this directly
no outgoing calls
no test coverage detected