| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Turns out it's more general purpose than I thought. Gonna reuse it for
MovieWidget.
|
| |
|
| |
|
|
|
|
| |
Show count, size and duration.
|
|
|
|
|
| |
Fill the submenu from readSettings so we can act on configuration
changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Select files by CTRL+k, deselect everything with CTRL+k (for kill).
Select all with the global shortcut CTRL+a.
Learned some interesting things: First, QAction shortcuts won't work if
you don't add them to any actions(), even if it has a parent. So
subclass QTreeView for the context menu and add an InvisibleAction enum.
Don't show the QAction if it has that flag in data(). This has a nice
side effect: the context menu isn't shown any more when you right-click
outside the FSView.
Second: The debugger was quite confused with equal SLOT names in
different classes when using the new connect syntax. It dropped me off
in totally wrong classes, confusing me at first, too :(
|
|
|
|
| |
Well, lambdas make life so much easier! Thanks for that :)
|
|
|
|
|
|
|
|
|
| |
Assume that the pictures are identical when the MD5-Sum is. Don't do
that if only the filename is identical. There can be pics with identical
names in the database. Instead, record the md5sum in a custom role.
The idea is to let the user sort it out by comparing all pictures
visually, but that's not yet implemented.
|
|
|
|
| |
And remove a lot of cruft... Still much work to be done :(
|
|
|
|
| |
Comes at almost no cost when using Viewer :)
|
|
|
|
|
| |
Use lightweight viewer from ShemovCleaner for this. Unfortunately
PictureViewer2 is overengineered for this.
|
|
|
|
|
|
| |
Unconditionally try to extract all selected files with 7z to the current
directory. Don't try to figure out if 7z is available or if the file is an
archive.
|
|
|
|
| |
Finally make the QComboBox do something.
|
|
|
|
|
| |
Sort size and duration by their actual numbers instead of alphabetically
by the display string.
|
| |
|
|
|
|
|
| |
Mimic the old behavior, but make the Wizard local to FSWidget. It's only
called from there, so no need to make it global.
|
|
|
|
| |
Also create a helper function to create separator actions.
|
| |
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
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.
|