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

Method removeRows

src/MacroListModel.cpp:48–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48bool 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
63bool MacroListModel::insertRows(int row, int count, const QModelIndex &parent)
64{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected