diff options
author | Arno <am@disconnect.de> | 2014-07-09 13:32:26 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2014-07-09 13:32:26 +0200 |
commit | 7a2c2c37d4324935ea55221b57d1c878fff4860e (patch) | |
tree | 9f1a15a156d2862e2b99c8f22917ef593aab8ca0 /picfilesmodel.h | |
parent | 6fb379069d1ec4fab504b56c9f0e80baee1d8d7d (diff) | |
download | SheMov-7a2c2c37d4324935ea55221b57d1c878fff4860e.tar.gz SheMov-7a2c2c37d4324935ea55221b57d1c878fff4860e.tar.bz2 SheMov-7a2c2c37d4324935ea55221b57d1c878fff4860e.zip |
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.
Diffstat (limited to 'picfilesmodel.h')
-rw-r--r-- | picfilesmodel.h | 2 |
1 files changed, 2 insertions, 0 deletions
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<QPair<int, QString> > &files); bool changeMappings(const QList<int> &fileIds, const QList<QVariant> &parentIds); QList<MappingData> mappingDataFromFile(int fileId) const; + SmTreeItem *mappingTreeFromFile(int fileId) const; + SmTreeItem *findRecursive(SmTreeItem *start, const QVariant &name, const QVariant id) const; QList<MappingData> mappingDataFromFiles(const QList<int> fileIds) const; public slots: |