| 28 | } |
| 29 | |
| 30 | QVariant 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 | |
| 44 | QModelIndex ActionsGroupsModel::parent(const QModelIndex &index) const |
| 45 | { |
no test coverage detected