From 6fc9473ea5b84702cc5f07bc405394bddfccf5ac Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 18 Mar 2012 03:52:00 +0100 Subject: Save settings for PicturesWidget Remember selected node in PicturesWidget. --- mappingtreemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mappingtreemodel.cpp') diff --git a/mappingtreemodel.cpp b/mappingtreemodel.cpp index 9b849d9..42c1380 100644 --- a/mappingtreemodel.cpp +++ b/mappingtreemodel.cpp @@ -118,7 +118,7 @@ QList MappingTreeModel::childList(const QVariant &value, int column) c return QList() << value; } -QModelIndex MappingTreeModel::indexFromPath(QString &path, int column) const{ +QModelIndex MappingTreeModel::indexFromPath(const QString &path, int column) const{ QStringList items = path.split("/"); if(items.isEmpty() || column >= NumFields){ return QModelIndex(); -- cgit v1.2.3-70-g09d2