| 243 | } |
| 244 | |
| 245 | QVariant VarTableModel::headerData(int section, Qt::Orientation orientation, int role) const { |
| 246 | if (orientation == Qt::Horizontal && role == Qt::DisplayRole) { |
| 247 | switch (section) { |
| 248 | case VAR_NAME_COL: |
| 249 | return tr("Name"); |
| 250 | case VAR_LOCATION_COL: |
| 251 | return tr("Location"); |
| 252 | case VAR_TYPE_COL: |
| 253 | return tr("Type"); |
| 254 | case VAR_SIZE_COL: |
| 255 | return tr("Size"); |
| 256 | case VAR_PREVIEW_COL: |
| 257 | return tr("Preview"); |
| 258 | default: |
| 259 | return QVariant(); |
| 260 | } |
| 261 | } |
| 262 | return QVariant(); |
| 263 | } |
| 264 | |
| 265 | Qt::ItemFlags VarTableModel::flags(const QModelIndex &index) const { |
| 266 | if (!index.isValid()) { |
nothing calls this directly
no outgoing calls
no test coverage detected