| 80 | } |
| 81 | |
| 82 | QVariant EnvironmentProfileModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 83 | { |
| 84 | if (section < 0 || section >= columnCount(QModelIndex()) || |
| 85 | orientation != Qt::Horizontal || |
| 86 | role != Qt::DisplayRole) { |
| 87 | return {}; |
| 88 | } |
| 89 | |
| 90 | if (section == VariableColumn) { |
| 91 | return i18nc("@title:column", "Variable"); |
| 92 | } |
| 93 | return i18nc("@title:column", "Value"); |
| 94 | } |
| 95 | |
| 96 | bool EnvironmentProfileModel::setData(const QModelIndex& index, const QVariant& data, int role) |
| 97 | { |
nothing calls this directly
no test coverage detected