| 27 | } |
| 28 | |
| 29 | QVariant header(QAbstractItemModel* model, int section, Qt::Orientation orientation, int role) const |
| 30 | { |
| 31 | if (model && section == 0 && orientation == Qt::Horizontal && role == Qt::DisplayRole) { |
| 32 | return m_label; |
| 33 | } else { |
| 34 | return QVariant(); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | protected: |
| 39 | QString m_label; |