diff options
author | Arno <am@disconnect.de> | 2011-07-08 10:03:14 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2011-07-08 10:03:14 +0200 |
commit | 94e7da1400e59256f41f72b4592d4a9df1cca5a0 (patch) | |
tree | 0afb0303e878280fa3c9f829326cae9cb73114a3 /smtreemodel.cpp | |
parent | 35774a402027714ed6f93041aea1ebe5f5391205 (diff) | |
download | SheMov-94e7da1400e59256f41f72b4592d4a9df1cca5a0.tar.gz SheMov-94e7da1400e59256f41f72b4592d4a9df1cca5a0.tar.bz2 SheMov-94e7da1400e59256f41f72b4592d4a9df1cca5a0.zip |
Turn metadata display into a QTreeView
This wasn't as easy as it sounds. I had to completely redesign the
SeriesMetadataModel. Now it's a hybrid between a ListModel and a
TreeModel. The actual data is held in a QList<QVariant>, the tree is
only for display.
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; } |