| 353 | } |
| 354 | |
| 355 | QVariant AttributesModel::defaultsForRole(int role) const |
| 356 | { |
| 357 | // returns default-constructed QVariant if not found |
| 358 | return d->defaultsMap.value(role); |
| 359 | } |
| 360 | |
| 361 | bool AttributesModel::setData(const QModelIndex &index, const QVariant &value, int role) |
| 362 | { |