| 78 | } |
| 79 | |
| 80 | Qt::ItemFlags QmitkDataStorageLayerStackModel::flags(const QModelIndex& index) const |
| 81 | { |
| 82 | Qt::ItemFlags flags = Qt::NoItemFlags; |
| 83 | if (index.isValid() && index.model() == this) |
| 84 | { |
| 85 | flags = Qt::ItemIsEnabled | Qt::ItemIsSelectable; |
| 86 | if (0 == index.column()) |
| 87 | { |
| 88 | flags |= Qt::ItemIsUserCheckable; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | return flags; |
| 93 | } |
| 94 | |
| 95 | QVariant QmitkDataStorageLayerStackModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 96 | { |
no outgoing calls
no test coverage detected