| 128 | } |
| 129 | |
| 130 | QVariant EngineOptionModel::headerData(int section, Qt::Orientation orientation, |
| 131 | int role) const |
| 132 | { |
| 133 | if (role == Qt::DisplayRole && orientation == Qt::Horizontal) |
| 134 | { |
| 135 | switch (section) |
| 136 | { |
| 137 | case 0: |
| 138 | return tr("Name"); |
| 139 | case 1: |
| 140 | return tr("Value"); |
| 141 | case 2: |
| 142 | return tr("Alias"); |
| 143 | default: |
| 144 | return QVariant(); |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | return QVariant(); |
| 149 | } |
| 150 | |
| 151 | Qt::ItemFlags EngineOptionModel::flags(const QModelIndex& index) const |
| 152 | { |
nothing calls this directly
no outgoing calls
no test coverage detected