| 61 | } |
| 62 | |
| 63 | bool MacroListModel::insertRows(int row, int count, const QModelIndex &parent) |
| 64 | { |
| 65 | if (count < 1 || row < 0 || row > rowCount(parent)) |
| 66 | return false; |
| 67 | |
| 68 | beginInsertRows(QModelIndex(), row, row + count - 1); |
| 69 | |
| 70 | for (int r = 0; r < count; ++r) { |
| 71 | macroManager->availableMacros().insert(row, new Macro()); |
| 72 | } |
| 73 | |
| 74 | endInsertRows(); |
| 75 | |
| 76 | return true; |
| 77 | } |
| 78 | |
| 79 | Macro *MacroListModel::macro(const QModelIndex &index) |
| 80 | { |
no outgoing calls
no test coverage detected