| 259 | } |
| 260 | |
| 261 | bool TreeModel::setTreeData(const QVariant& data, const int row, const int column, const QModelIndex& parent, int role) { |
| 262 | QModelIndex curveIndex = index(row, column, parent); |
| 263 | return setData(curveIndex, data, role); |
| 264 | } |
| 265 | |
| 266 | bool TreeModel::setData(const QModelIndex& index, const QVariant& value, int role) { |
| 267 | if (role == Qt::EditRole || role == Qt::DisplayRole) { |
no outgoing calls
no test coverage detected