From f2b80db9c4dd18e59f8b606e113d9f15cd891c5d Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 22 Sep 2012 07:11:55 +0200 Subject: 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! --- mappingtreewidget.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'mappingtreewidget.cpp') 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())); -- cgit v1.2.3-70-g09d2