| 34 | } |
| 35 | |
| 36 | QVariant 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 | |
| 48 | bool MacroListModel::removeRows(int row, int count, const QModelIndex &parent) |
| 49 | { |
no test coverage detected