| 286 | } |
| 287 | |
| 288 | void StaffModel::removeStaff(const QModelIndex &index) |
| 289 | { |
| 290 | beginRemoveRows(QModelIndex(), index.row(), index.row()); |
| 291 | staffs.removeAt(index.row()); |
| 292 | emit staffChanged(); |
| 293 | endRemoveRows(); |
| 294 | } |
| 295 | |
| 296 | QVariant StaffModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 297 | { |