| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Also create a helper function to create separator actions.
|
| |
|
|
|
|
|
| |
Use the parent of the current selected dir as starting point when adding
a directory to FSWidget.
|
|
|
|
|
|
|
|
| |
* show busy cursor when gathering data
* emit statusbarMessage() when gathering data
The latter shows a summary with the time it has taken to gather data,
the SQL query count and the number of files analyzed.
|
| |
|
|
|
|
|
|
| |
* replace add and remove icons with generated '+' and '-' icons
* rearrange top widgets: directories at the left, center toolbar and
filters at the right.
|
|
|
|
|
|
|
|
|
|
|
| |
First, look for md5 in files and files_origin. Then look for the complete
filename in files, and finally for the filename without suffix in files_origin.
If we have a match, note it in the new column "Presence". Matches from
files are displayed green, matches from files_orgin blue.
This implementation tries to execute as few QSqlQueries as possible by
using goto for performance. We only want to know if the file is somewhere
present, so skip the remaining queries once we have a match.
|
|
|
|
|
|
| |
* add programmatically rendered icons
* make text Qt::black
* set rootIsDecorated to false
|
|
|
|
| |
Not pretty, but we're getting there.
|
|
|
|
|
|
|
| |
Also safe and restore them. What I found out: setting the insert policy
on QComboBoxes is totally useless when you insert items
programmatically. So I implemented inserting items sorted on my own and
generalized it for the dir and filter combobox, thanks to lambdas...
|
|
|
|
|
| |
Still doesn't read anything from the filesystem, but now you can add and
remove directories. Also, the settings are saved.
|
|
|
|
| |
Just the layout, does absolutely nothing yet.
|
|
|
|
|
| |
tries to tar xf selected files. If tar was successful, the archive is
deleted. Should make archiving pics a bit easier.
|
|
|
|
|
| |
baseName() only returns the filename unto the *first* dot, but we want the
*last* dot, so use completeBaseName().
|
|
|
|
| |
Remove unneccessary includes and forward declarations.
|
| |
|
|
|
|
|
| |
* make one connect() type-safe
* remove members that don't need to be members, and one unused member
|
| |
|
|
|
|
|
|
|
| |
* use type-safe connect syntax
* remove unnecessary includes
* remove Q_FOREACH
* inline selectionModel()
|
|
|
|
|
|
| |
* use type-safe connect syntax
* remove Q_FOREACH
* remove unused members and make some QPushButtons non-members
|
|
|
|
|
|
| |
* Use type-safe connect
* remove Q_FOREACH
* remove some unused #includes
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Converted everything to the type-safe connect syntax. That unearthed two
minor problems with filesystemwidget.cpp:
1. We called a private SLOT in there from class SheMov. Dunno if it
works with the old syntax. Anyway, I fixed it.
2. With the new syntax you can't call SLOTS with default arguments, so I
had to introduce a helper slot playSelectedWithDefault
Since I was already at it, I also replaced Q_FOREACH.
|
|
|
|
|
| |
It's really simple: If we have a file with the same name, but another
extension, add it as FT_ORIGIN to the list.
|
|
|
|
|
| |
Pop up a dialog to ask if origin files should be deleted. Not tested yet,
so beware of the leopard!
|
|
|
|
|
|
|
| |
Specifically editing mappings. Select and show the source when selecting
a mapping result. I know I worked on this a while ago, but never got it
right. IIRC I fiddled around with paths and recursion, but that was way
too complicated. Just move down the source tree. Fuck recursion :)
|
|
|
|
|
| |
Bail out if we have FT_ORIGIN. This file will never be present. Also
check harder what title to set in pictureviewer2.cpp, if any.
|
|
|
|
|
| |
Use QDirIterator instead. It compiles, but it's *not* tested! So it
might not work as expected!
|
|
|
|
|
|
|
| |
Since Qt 5.0 QDir has the member removeRecursively, so use it. Just be
careful what you feed it. Don't use QFileInfo::dir, because that's the
*containing* directory. That would delete everything *including* the
parent directory!
|
|
|
|
|
|
| |
* replace Q_FOREACH, except in the recursive functions. Those will be
removed in a later commit
* use type-safe connect syntax
|
|
|
|
|
| |
Add option and use it. Warn if the directory is not accessible and bail
out. Initialize mFilesCtr to 0 so we don't crash if it's < 0
|
| |
|
|
|
|
|
|
|
|
|
| |
Honestly, I have no idea what it was good for once. The class/file using
it is long gone, but I forgot to remove the configuration options.
Unfortunately my git-foo isn't good enough to figure out what happened
when.
Well, goodbye!
|
|
|
|
|
|
| |
* replace qSort
* replace Q_FOREACH
* use type-safe connect syntax
|
|
|
|
|
|
| |
* remove deprecation warnings (QModelIndex::child)
* replace Q_FOREACH
* use type-safe connect syntax
|
|
|
|
|
|
| |
* remove deprecation warning: use std::sort
* use c++-for instead of Q_FOREACH
* make one remaining connect type-safe
|
|
|
|
|
|
| |
* get rid of QModelIndex::child deprecation warnings
* replace Q_FOREACH
* use type-safe connect syntax
|
|
|
|
| |
Use std::sort instead of qSort and replace Q_FOREACH.
|
|
|
|
|
| |
Use QImage::sizeInBytes instead of QImage::byteCount as suggested by
documentation.
|
|
|
|
|
| |
* remove one deprecation warning about QModelIndex::child
* use c++-style for-loops instead of Q_FOREACH
|
|
|
|
|
| |
* remove a bunch of uncessary #includes
* remove a deprecation warning: use std::sort instead of qSort
|
|
|
|
|
| |
* use std::sort instead of deprecated qSort
* use c++ style for-loop instead of Q_FOREACH
|
|
|
|
| |
Deprecation warning suggests to use QAbstractItemModel::index, so do it.
|
| |
|
|
|
|
|
| |
Also use SLOT activated instead of currentChanged for the reasons
QCombobox so the text is inserted even if the selection didn't change.
|
|
|
|
|
|
| |
* headers
* get rid of foreach
* use type safe connect syntax
|
|
|
|
| |
It's obsolete. Same as before!
|
|
|
|
| |
Another QSignalMapper gone...
|
| |
|
|
|
|
|
|
|
| |
One has to ask what it is good for now, maybe totally useless after
revamping the slide dialog, but that's for another commit...
This also eliminates QSignalMapper from shemov.{h,cpp}
|