| 29 | } |
| 30 | |
| 31 | auto HotKeyListModel::headerData(int section, Qt::Orientation orientation, int role) const -> QVariant |
| 32 | { |
| 33 | if(role != Qt::DisplayRole) |
| 34 | return {}; |
| 35 | |
| 36 | if(orientation != Qt::Horizontal) |
| 37 | return {}; |
| 38 | |
| 39 | if(section >= header.size()) |
| 40 | return {}; |
| 41 | |
| 42 | return header.at(section); |
| 43 | } |
| 44 | |
| 45 | auto HotKeyListModel::data(const QModelIndex &index, int role) const -> QVariant |
| 46 | { |
nothing calls this directly
no outgoing calls
no test coverage detected