diff options
Diffstat (limited to 'smtreemodel.cpp')
-rw-r--r-- | smtreemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/smtreemodel.cpp b/smtreemodel.cpp index bcd1a8a..743e8be 100644 --- a/smtreemodel.cpp +++ b/smtreemodel.cpp @@ -84,7 +84,7 @@ const QHash<QString, int> SmTreeModel::headerData() const{ bool SmTreeModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role){ if((orientation == Qt::Horizontal) && (role == Qt::DisplayRole)){ - mRootItem->setData(section, value); + mHeaders[section] = value.toString(); emit headerDataChanged(orientation, section, section); return true; } |