summaryrefslogtreecommitdiffstats
path: root/smglobals.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 /smglobals.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 'smglobals.cpp')
-rw-r--r--smglobals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/smglobals.cpp b/smglobals.cpp
index b73c89b..93ec72e 100644
--- a/smglobals.cpp
+++ b/smglobals.cpp
@@ -94,7 +94,7 @@ QAbstractItemModel *SmGlobals::model(const QString &which){
}
}else if(which == "MappingTree"){
if(!mModels.contains("MappingTree")){
- QStringList headers = QStringList() << tr("Name") << tr("Id") << tr("Date");
+ QStringList headers = QStringList() << tr("Name") << tr("Id") << tr("Date") << tr("Parent");
MappingTreeModel *model = new MappingTreeModel(headers);
mModels.insert(which, model);
}