| 205 | } |
| 206 | |
| 207 | Qt::ItemFlags ProgramModel::flags(const QModelIndex &index) const { |
| 208 | if (index.column() != 2 && index.column() != 3) { |
| 209 | return QAbstractTableModel::flags(index); |
| 210 | } else { |
| 211 | return QAbstractTableModel::flags(index) | Qt::ItemIsEditable; |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | bool ProgramModel::setData(const QModelIndex &index, const QVariant &value, int role) { |
| 216 | if (role == Qt::EditRole) { |
nothing calls this directly
no outgoing calls
no test coverage detected