summaryrefslogtreecommitdiffstats
path: root/picfilesmodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix archiving picturesArno2012-10-271-4/+6
| | | | | | Well, what can I say. Lost in recursion and parent pointers. This commit actually boils down to using the proper database tables and inserting the right values. 'Nuff said...
* More fixes to MappingTreeModelArno2012-10-061-3/+3
| | | | | | | | | | Fix move, addChild and such. Rename Fields and Roles to more speaking names, but that revealed a much deeper bug: the ParentID isn't really the parent_id, but the mapping_id. That could explain a lot. Nevertheless, it's still faster to repopulate the model after moving oder adding children instead of calling removeRows and insertRows. Another non-working commit... :(
* Fix Mappings in PictureViewer2Arno2012-10-041-0/+219
Another fix for the new MappingTreeModel database layout: Make the mappings display correctly when showing an archived picture. For performance reasons I had to make PicFilesModel global and put it into a separate file. Also clean up MappingTreeModel: remove comments and unused functions.