| 46 | } |
| 47 | |
| 48 | bool MacroListModel::removeRows(int row, int count, const QModelIndex &parent) |
| 49 | { |
| 50 | Q_UNUSED(parent); |
| 51 | |
| 52 | beginRemoveRows(QModelIndex(), row, row + count - 1); |
| 53 | |
| 54 | while (count--) { |
| 55 | delete macroManager->availableMacros().takeAt(row); |
| 56 | } |
| 57 | |
| 58 | endRemoveRows(); |
| 59 | |
| 60 | return true; |
| 61 | } |
| 62 | |
| 63 | bool MacroListModel::insertRows(int row, int count, const QModelIndex &parent) |
| 64 | { |
nothing calls this directly
no outgoing calls
no test coverage detected