| 80 | } |
| 81 | |
| 82 | QVariant DecoderModel::headerData(int section, |
| 83 | Qt::Orientation orientation, |
| 84 | int role) const |
| 85 | { |
| 86 | if (role != Qt::DisplayRole) |
| 87 | return QVariant(); |
| 88 | |
| 89 | if (orientation == Qt::Vertical) |
| 90 | return section; |
| 91 | |
| 92 | if (_decoder_stack) { |
| 93 | QString title; |
| 94 | if (_decoder_stack->list_row_title(section, title)) |
| 95 | return title; |
| 96 | } |
| 97 | return QVariant(); |
| 98 | } |
| 99 | |
| 100 | } // namespace data |
| 101 | } // namespace pv |
nothing calls this directly
no test coverage detected