| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
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}
|
| |
|
|
|
|
|
|
|
| |
This one was a bit harder, because I made a function return the
QSignalMapper, but I could reuse it with a signature change. Just
provide the view, too, so we can make the connection inside the
function, which now returns void.
|
|
|
|
| |
and replace it with a lambda.
|
|
|
|
| |
Replace it with a lambda as SLOT, as stated in the QT documentation.
|
|
|
|
| |
Not needed any more...
|
|
|
|
|
|
|
|
|
|
|
| |
Actually, removing stray pictures never worked, because the call to that
function was commented out.
Also, remove the clear functions stray files and stray ids and lock the
mutex in place. They were only called once, so we can do it inside the
function. And don't forget to clear the picture Ids.
Finally, fix the logic for activating the cleanup button.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Don't access FileName in constructWindowTitle when we don't have a file
at mCurPos. That's what crashed us randomly!
Also (yes, I know, should be a separate commit) fix warnings about
implicit fallthru's in switch statements. The one in SmDirModel actually
was a bug, the one in tabChanged is just a nuisance.
Also (again), shuffle header inclusion in SmGlobals so Xlib and QT don't
clash.
|
| |
|
|
|
|
| |
Create edit and context menus.
|
|
|
|
|
| |
Finally do something with the random selection!
Implement playAll and playSelected.
|
|
|
|
| |
RotzPeng! He who doeth not find the button of his choice is not worthy!
|
|
|
|
|
| |
Fixing selection behavior should have been a separate commit, but
well... Set it to ExtendedSelection and SelectRows.
|
|
|
|
| |
Fill the random file view with movies.
|