From 2defc44300bd18917e6e5e2327ebb72f951ff7b1 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 17 Nov 2012 05:14:56 +0100 Subject: Finally { fix MappingTreeModel }!!! I think I did it! Fixed MappingTreeModel to make it usable, avoid all the traps with the insane column and variable names! Now we can actually have the same mapping with different parents! Yay! Hope it won't come back and bite me! --- mappingtreewidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mappingtreewidget.cpp') diff --git a/mappingtreewidget.cpp b/mappingtreewidget.cpp index 0881e3c..4cde673 100644 --- a/mappingtreewidget.cpp +++ b/mappingtreewidget.cpp @@ -227,7 +227,7 @@ void MappingTreeWidget::editChild(){ void MappingTreeWidget::selectionChanged(){ QModelIndex sel = selected(); QModelIndex real = mProxy->mapToSource(sel); - emit mappingChanged(real.data(MappingTreeModel::DescIdRole).toInt()); + emit mappingChanged(real.data(MappingTreeModel::MappingIdRole).toInt()); } void MappingTreeWidget::moveChild(){ -- cgit v1.2.3-70-g09d2