| 110 | } |
| 111 | |
| 112 | bool MacroStepTableModel::insertRows(int row, int count, const QModelIndex &parent) |
| 113 | { |
| 114 | if (count < 1 || row < 0 || row > rowCount(parent)) |
| 115 | return false; |
| 116 | |
| 117 | beginInsertRows(QModelIndex(), row, row + count - 1); |
| 118 | |
| 119 | for (int r = 0; r < count; ++r) { |
| 120 | macro->getSteps().insert(row, MacroStep(Scintilla::Message::ReplaceSel, 0, 0)); |
| 121 | } |
| 122 | |
| 123 | endInsertRows(); |
| 124 | |
| 125 | return true; |
| 126 | } |
| 127 | |
| 128 | bool MacroStepTableModel::removeRows(int row, int count, const QModelIndex &parent) |
| 129 | { |