MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / insertRows

Method insertRows

src/MacroStepTableModel.cpp:112–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112bool 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
128bool MacroStepTableModel::removeRows(int row, int count, const QModelIndex &parent)
129{

Callers

nothing calls this directly

Calls 1

MacroStepClass · 0.85

Tested by

no test coverage detected