| 69 | } |
| 70 | |
| 71 | QVariant ValueTableModel::headerData(int section, Qt::Orientation orientation, int role) const |
| 72 | { |
| 73 | if (role != Qt::DisplayRole) { |
| 74 | return QVariant(); |
| 75 | } |
| 76 | |
| 77 | if (orientation == Qt::Vertical) { |
| 78 | return section + 1; |
| 79 | } |
| 80 | |
| 81 | if(section < 0 || section >= rootItem->columnCount()) |
| 82 | return QVariant(); |
| 83 | |
| 84 | return rootItem->data(section); |
| 85 | } |
| 86 | |
| 87 | bool ValueTableModel::setHeaderData(int section, Qt::Orientation orientation, |
| 88 | const QVariant &value, int role) |
nothing calls this directly
no test coverage detected