summaryrefslogtreecommitdiffstats
path: root/mappingtreewidget.h
Commit message (Collapse)AuthorAgeFilesLines
* Save settings for PicturesWidgetArno2012-03-181-0/+1
| | | | Remember selected node in PicturesWidget.
* Impement editing of picture mappingsArno2012-03-031-0/+13
| | | | Make it possible to edit picture mappings on archived pictures.
* Make add mapping item a context menu entryArno2012-03-021-3/+1
| | | | | | Remove the QLineEdit and QPushButtons from the bottom of MappingTreeWidget and make adding mapping items available in the context menu.
* Make it possible to move mappingsArno2012-03-021-0/+4
| | | | | | | | | | | | | Move mappings by context menu. Select new parent by QComboBox with available paths, items separated by "/". Note that hell will break loose if a mapping name contains "/". Will be fixed later. Since mapping views don't have setSortingEnabled(), make SmTreeModel::addRow() sort items. This fixes a long standing bug in SmTreeModel::reparent(): Since it alters the model, newParent has to be a QPersistentModelIndex to stay consistent.
* Move some code from NewPicsDialog aroundArno2012-02-261-0/+25
| | | | | Put mapping editor into a seperate class to make it easier using it for changing mappings later.
* Implement PicturesWidgetArno2012-02-261-0/+4
| | | | | | | | Create a tab to show the archived pictures. It's far from complete, but it already does: * show pictures * hover * delete pictures from archive
* Implemented mapping widget for NewPicsDialogArno2012-02-251-0/+3
| | | | | | | Make it possible to add mappings to new pictures. This actually was a tough one. Maybe I shouldn't drink and code. Next: make NewPicsDialog actually do something.
* Implement MappingTreeWidgetArno2012-02-241-0/+65
This is a rather large commit. It implements MappingTreeWidget using MappingTreeModel unsurprisingly this uncovered some exciting bugs. Fixes the following bugs in MappingTreeModel: * use insertRows() and removeRows() when addings children, because dataChanged() won't do it. * don't use a prepared QSqlQuery when fetching children recursively. This won't work because the query is still active when we invoke ourselves again. Put the query on the stack instead * Keep the model sorted. Also add an entry for a MappingTreeEditor to the File-Menu.