| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Mostly nullptr, one missing include that wasn't really missed, and a
stray ;
|
|
|
|
| |
And remove a lot of cruft... Still much work to be done :(
|
|
|
|
| |
Also fix handling of next picture.
|
|
|
|
|
|
| |
Make archiving various pictures easier. When NewPicsDialog is calles
with a directory, the Next> button archives the current pic and selects
the next.
|
|
|
|
|
|
|
|
| |
and replace them with write/readSettings. It was a useless feature
anyway, don't even remember what it was good for.
Also fix another bug in MappingTreeResultModel: Clear mCurrentData too,
when clearData is called.
|
|
|
|
|
|
|
|
|
|
| |
* start maximized
* focus MappingTree when showing NewPicsDialog
* Keyboard Shortcuts for FilesystemWidget:
CTRL+UP: go to parent dir
CTRL+LEFT: go back
CTRL+U: unpack
* close UnpackDialog when done
|
|
|
|
| |
A set of attributes can now be saved and loaded in NewPicsDialog.
|
|
|
|
|
| |
Add button to save the position of the NewPicsDialog and move it there
when we show()
|
|
|
|
|
|
| |
* Show and archive size of pictures
* Fix SqlQueries in PicFilesModel: removeFiles and changeMappings
* use delegate in PictureView
|
|
|
|
|
|
|
| |
* repair shortcuts for adding files to NewPicsDialog and showing it from
PictureViewer2
* Replace files in NewPicsDialog instead of adding them
* add missing header to MappingTreeModel
|
|
|
|
|
|
|
| |
* remove some of the Transaction madness
* make it possible to archive pics again
It's far from finished....
|
|
|
|
|
|
|
|
|
|
| |
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...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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...
|
|
|
|
|
|
|
|
| |
* 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 :)
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Added convenience function to archive selected pictures. Selected pics
in the FileManager will automagically be added to NewPicsDialog.
|
|
|
|
|
| |
Put mapping editor into a seperate class to make it easier using it for
changing mappings later.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
Version 1 of NewPicsDialog. Just one single tab for adding files. Does
nothing yet besides adding and removing files.
|