summaryrefslogtreecommitdiffstats
path: root/newpicsdialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix setAlternatignRowColorsArno2013-04-101-16/+9
| | | | | | | | | | | | | | | | | | | | Well, what started as a try to simplify QTreeView ended in a mass header murder... What happened: * I searched for a way to let every QTreeView honor the setAlternatingRowcolors() setting. Unfortunately it isn't enough to just set the global palette and set it to true. So every QTreeView is now derived from SmTreeView * SmTreeView registers itself with SmGlobals, so the property is set _after_ it's constructed. It's definitely not enough to call it in the constructor. I guess that's a bug. But it's enough to append the SmTreeView to a QList<QWidget*> in SmGlobals and call it _after_ the painting is done. * As an added Bonus we can add virt. funcs to every SmTreeView at will While at it I realized that most of the included headers were void, so remove them. No idea what impact it has on the bin size...
* Fix ColorsArno2013-03-171-0/+3
| | | | | | | This is more a qt5-fix than a SmDirModel fix. The global palette doesn't propagate any more, so we have to set the palette in every QTreeView separately. Very annoying and tedious. Maybe I missed a Widget or two, dunno...
* Port to Qt5Arno2013-03-031-6/+6
| | | | | | | | * Change #include to qt5 * Fix missing QX11Info * use explicit constructor for QVariant(QColor) * use beginResetModel() and endResetModel() instead of reset(). The latter was removed. Hopefully it still works :)
* Yet another MappingTreeModel fixArno2012-11-171-1/+1
| | | | | Forgot to fix/rename MappingTreeResultModel... Adding pictures works again :)
* More renaming and database cleanupArno2012-11-161-1/+1
| | | | | | | | | | | | | 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!
* Usability: Make archiving pics easierArno2012-11-161-0/+6
| | | | | | | | | | | To make archiving pictures from different sources easier, add a NewPicsDialog to PictureViewer. Add shortcuts to show the dialog and adding pics to it. After adding all pics with the same mappping, just click OK and add them to the archive. Shortcuts: Meta+s: Show NewPicsDialog Meta+a: Add current pic
* Bugfixes: don't select dirs and don't crash on write settingsArno2012-10-271-1/+1
| | | | | | | Only select files when archiving pics from filemanager. While at it, I noticed a crash on close when no item is selected in PicturesWidget. So check if MappingData is valid on writing settings. Best way is MappingData::isValid(), and for that I needed a explicit constructor.
* Fix archiving picturesArno2012-10-271-4/+4
| | | | | | 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...
* Archive selected picturesArno2012-09-081-4/+19
| | | | | Added convenience function to archive selected pictures. Selected pics in the FileManager will automagically be added to NewPicsDialog.
* Remember last directory when archiving picsArno2012-03-191-1/+3
| | | | Write last opened dir from QFileDialog in NewPicsDialog.
* Move some code from NewPicsDialog aroundArno2012-02-261-43/+3
| | | | | Put mapping editor into a seperate class to make it easier using it for changing mappings later.
* Make NewPicsDialog archive picturesArno2012-02-251-11/+73
| | | | | | Finally NewPicsDialog actually does something. Added another parameter to Helper::moveToArchive. If set to true, files will only be copied instead of moved. Default is false, not changing the expected behavior.
* Implemented mapping widget for NewPicsDialogArno2012-02-251-1/+46
| | | | | | | 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.
* Implemented NewPicsDialogArno2012-02-241-0/+248
Version 1 of NewPicsDialog. Just one single tab for adding files. Does nothing yet besides adding and removing files.