summaryrefslogtreecommitdiffstats
path: root/picfilesmodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* More renaming and database cleanupArno2012-11-161-4/+4
| | | | | | | | | | | | | Rename: * drop table pics_mappings * rename pics_mappings2 to pics_mappings (no column renames) Cleanup: * drop tables and sequences: pics_attributes* * drop tables and sequences: pics_actors* * drop tables and sequences: pics_themes* Still works!
* More renaming: mappings_parentsArno2012-11-161-1/+1
| | | | | | | | | | | Rename: * drop table mappings_parents * rename mappings_parents2 to mapping_parents * drop the s after mapping on column names * rename FK imapping_id to idescription_id * rename ParentId(Role) to MappingParentId(Role) Well, it still works (tm) :)
* Renaming continued!Arno2012-11-161-2/+2
| | | | Rename enum also! _THAT_ should help, I hope!
* 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.