From 7a2c2c37d4324935ea55221b57d1c878fff4860e Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 9 Jul 2014 13:32:26 +0200 Subject: Bring back the nice MappingItem! Resurrect the indented MappingItem. There's some recursion involved, but actually it ain't so hard if you have a template :) This adventure uncovered a bug in NewPicsDialog: Right now we also record the nodes (not just the leaves) for the Mappings. This bug was introduced by commit dc7cc269a4fffe43bdac2ae2dc6548fbd1e3bb5e and will be fixed in one of the next commits. --- picfilesmodel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'picfilesmodel.h') diff --git a/picfilesmodel.h b/picfilesmodel.h index a5a9859..ad28e1a 100644 --- a/picfilesmodel.h +++ b/picfilesmodel.h @@ -30,6 +30,8 @@ class PicFilesModel : public SmTreeModel { void removeFiles(const QList > &files); bool changeMappings(const QList &fileIds, const QList &parentIds); QList mappingDataFromFile(int fileId) const; + SmTreeItem *mappingTreeFromFile(int fileId) const; + SmTreeItem *findRecursive(SmTreeItem *start, const QVariant &name, const QVariant id) const; QList mappingDataFromFiles(const QList fileIds) const; public slots: -- cgit v1.2.3-70-g09d2