| 180 | } |
| 181 | |
| 182 | Qt::ItemFlags Model::flags(const QModelIndex& index) const |
| 183 | { |
| 184 | if (!index.isValid()) { |
| 185 | qDebug() << index; |
| 186 | return Qt::NoItemFlags; |
| 187 | } |
| 188 | return getItem(index)->flags(index); |
| 189 | } |
| 190 | |
| 191 | bool Model::removeRows(int row, int count, const QModelIndex& parent) |
| 192 | { |