MCPcopy Create free account
hub / github.com/YACReader/yacreader / data

Method data

shortcuts_management/actions_groups_model.cpp:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30QVariant ActionsGroupsModel::data(const QModelIndex &index, int role) const
31{
32 if (!index.isValid())
33 return QVariant();
34
35 if (role == Qt::DecorationRole)
36 return QVariant(groups.at(index.row()).getIcon());
37
38 if (role != Qt::DisplayRole)
39 return QVariant();
40
41 return QVariant(groups[index.row()].getName());
42}
43
44QModelIndex ActionsGroupsModel::parent(const QModelIndex &index) const
45{

Callers 3

setEditorDataMethod · 0.45
saveShortcutMethod · 0.45
updateGroupIconsMethod · 0.45

Calls 4

isValidMethod · 0.45
getIconMethod · 0.45
rowMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected