| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Don't try to delete all the prepared statements manually. Get rid of the
~destructors and just close the QSqlDatabase. close() deletes all
Statements.
Also, quit() all QThreads on closeEvent() except CompleterProducer. When
the experimental archive view gets merged, that QThread is gone. No need
to bother...
|
|
|
|
|
|
|
| |
I think I did it! Fixed MappingTreeModel to make it usable, avoid all
the traps with the insane column and variable names! Now we can actually
have the same mapping with different parents! Yay! Hope it won't come
back and bite me!
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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!
|
|
|
|
|
|
|
|
|
|
|
| |
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) :)
|
|
|
|
| |
Rename enum also! _THAT_ should help, I hope!
|
|
|
|
|
|
| |
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...
|
|
|
|
|
|
|
|
|
|
| |
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... :(
|
|
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.
|