summaryrefslogtreecommitdiffstats
path: root/mappingtreewidget.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2012-09-22 07:11:55 +0200
committerArno <am@disconnect.de>2012-09-22 07:11:55 +0200
commitf2b80db9c4dd18e59f8b606e113d9f15cd891c5d (patch)
treeb3eddefe7ae6dddc7821db30892a33f133a50325 /mappingtreewidget.cpp
parent7cab312d14f79136b8c40507e24523ca5b6dc1e7 (diff)
downloadSheMov-f2b80db9c4dd18e59f8b606e113d9f15cd891c5d.tar.gz
SheMov-f2b80db9c4dd18e59f8b606e113d9f15cd891c5d.tar.bz2
SheMov-f2b80db9c4dd18e59f8b606e113d9f15cd891c5d.zip
MappingTreeModel Fix: repair parent <-> child relationship
Warning: this commit seems to work, but it doesn't! Introduce two new tables: mappings_parents2 and pics_mappings2 to create a real parent-child relationship. The pics_mappings need to reference a unique mappings_parents_id so the same mapping can be a child of different parents. For now only the MappingTree references the new tables. Everything else uses the old ones. Hence the warning!
Diffstat (limited to 'mappingtreewidget.cpp')
-rw-r--r--mappingtreewidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/mappingtreewidget.cpp b/mappingtreewidget.cpp
index 27d14d3..cd157a8 100644
--- a/mappingtreewidget.cpp
+++ b/mappingtreewidget.cpp
@@ -38,6 +38,7 @@ MappingTreeWidget::MappingTreeWidget(QWidget *parent) : QWidget(parent){
mTree->setModel(mProxy);
mTree->setColumnHidden(1, true);
mTree->setColumnHidden(2, true);
+ mTree->setColumnHidden(3, true);
mTree->setAlternatingRowColors(true);
mTree->expandAll();
connect(mModel, SIGNAL(needExpansion()), mTree, SLOT(expandAll()));