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

Method insertRows

src/MacroListModel.cpp:63–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool 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
79Macro *MacroListModel::macro(const QModelIndex &index)
80{

Callers 2

copyCurrentMacroMethod · 0.45
insertMacroStepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected