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

Method data

src/MacroListModel.cpp:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36QVariant MacroListModel::data(const QModelIndex &index, int role) const
37{
38 if (!index.isValid())
39 return QVariant();
40
41 if (role == Qt::DisplayRole || role == Qt::ToolTipRole) {
42 return macroManager->availableMacros()[index.row()]->getName();
43 }
44
45 return QVariant();
46}
47
48bool MacroListModel::removeRows(int row, int count, const QModelIndex &parent)
49{

Callers 15

paintMethod · 0.45
EditorManagerMethod · 0.45
setupEditorMethod · 0.45
setEditorDataMethod · 0.45
readFromDiskMethod · 0.45
setEditorDataMethod · 0.45
SubstituteByPositionMethod · 0.45
setEditorDataMethod · 0.45
FileListDockMethod · 0.45
itemClickedMethod · 0.45
lookupItemByEditorMethod · 0.45

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected