| 88 | } |
| 89 | |
| 90 | QVariant StructDetailModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 91 | { |
| 92 | if (orientation == Qt::Horizontal && role == Qt::DisplayRole) |
| 93 | { |
| 94 | switch (section) |
| 95 | { |
| 96 | case STRUCT_COL_OFFSET: |
| 97 | return tr("Offset"); |
| 98 | case STRUCT_COL_SIZE: |
| 99 | return tr("Size"); |
| 100 | case STRUCT_COL_TYPE: |
| 101 | return tr("Type"); |
| 102 | case STRUCT_COL_LABEL: |
| 103 | return tr("Name"); |
| 104 | default: |
| 105 | break; |
| 106 | } |
| 107 | } |
| 108 | return {}; |
| 109 | } |
| 110 | |
| 111 | Qt::ItemFlags StructDetailModel::flags(const QModelIndex& index) const |
| 112 | { |
nothing calls this directly
no outgoing calls
no test coverage detected