| 117 | } |
| 118 | |
| 119 | QVariant EngineConfigurationModel::headerData(int section, Qt::Orientation orientation, |
| 120 | int role) const |
| 121 | { |
| 122 | if (role == Qt::DisplayRole && orientation == Qt::Horizontal) |
| 123 | { |
| 124 | switch (section) |
| 125 | { |
| 126 | case NameColumn: |
| 127 | return tr("Name"); |
| 128 | case CommandColumn: |
| 129 | return tr("Command"); |
| 130 | case WorkdirColumn: |
| 131 | return tr("Working Directory"); |
| 132 | case ProtocolColumn: |
| 133 | return tr("Protocol"); |
| 134 | case VariantsColumn: |
| 135 | return tr("Variants"); |
| 136 | default: |
| 137 | return QVariant(); |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | return QVariant(); |
| 142 | } |
| 143 | |
| 144 | void EngineConfigurationModel::onEngineAdded(int index) |
| 145 | { |
nothing calls this directly
no outgoing calls
no test coverage detected