From ee29bb41dc9c4d4dd6fc9bfd3fb9ad5cc3bd1569 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 2 Mar 2012 20:08:40 +0100 Subject: Make it possible to move mappings Move mappings by context menu. Select new parent by QComboBox with available paths, items separated by "/". Note that hell will break loose if a mapping name contains "/". Will be fixed later. Since mapping views don't have setSortingEnabled(), make SmTreeModel::addRow() sort items. This fixes a long standing bug in SmTreeModel::reparent(): Since it alters the model, newParent has to be a QPersistentModelIndex to stay consistent. --- mappingtablewidget.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mappingtablewidget.h') diff --git a/mappingtablewidget.h b/mappingtablewidget.h index 2669354..256f4ce 100644 --- a/mappingtablewidget.h +++ b/mappingtablewidget.h @@ -16,6 +16,8 @@ class QTreeView; class QLineEdit; class QPushButton; +class QLabel; +class QComboBox; class MappingTableItemModel; class MappingTableModel; -- cgit v1.2.3-70-g09d2