| 85 | } |
| 86 | |
| 87 | bool ValueTableModel::setHeaderData(int section, Qt::Orientation orientation, |
| 88 | const QVariant &value, int role) |
| 89 | { |
| 90 | if (role != Qt::EditRole || orientation != Qt::Horizontal) |
| 91 | return false; |
| 92 | |
| 93 | if(rootItem->setData(section,value)) { |
| 94 | emit headerDataChanged(orientation, section, section); |
| 95 | return true; |
| 96 | } |
| 97 | return false; |
| 98 | } |
| 99 | |
| 100 | void ValueTableModel::setColumnCount(int column) { |
| 101 | _column = column; |