| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
When a torrent file is parseable, show the first filename in the view.
|
| |
|
|
|
|
| |
Remove background colors and just show the numbers.
|
|
|
|
|
|
|
| |
*BIG FAT WARNING*
Took me a while to figure it out, but the database connection only works
with MINGW64 instead of MINGW32! With the latter loading the SQL Plugin
fails! That said, off to brighter shores :)
|
|
|
|
|
|
|
|
|
|
| |
If the storage is fast enough, passing a bool to updateCopying does not
suffice. Then the SIGNAL with inProgress == true could arrive *after* the
work is already done, leaving the copy indicator in an inconsitent
state.
So check the QThread directly by ->isRunning() instead of passing a
bool.
|
|
|
|
| |
With a dark theme darkBlue doesn't please the eye :)
|
|
|
|
| |
MSYS2 doesn't need it, and as a benefit it also builds on linux :)
|
|
|
|
|
|
| |
Apparently QFontMetrics::width will be replaced by the much more
intuitive QFontMetrics::horizontalAdvance. Also, QTreeView::sortBy must
be called with a Qt::SortOrder as second argument.
|
|
|
|
|
|
|
| |
2 times now I lost files because deleteFiles emptied the whole directory
instead of just the selected files. I guess because the view was not
updated before. To make sure, show full paths of all files/directories
to be deleted.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
nullptr and one stupid explicit conversion that turned into an implicit
conversion...
|
| |
|
| |
|
|
|
|
|
|
| |
Turn Duration(qint64) into Duration(int) to avoid implicit casts.
INT_MAX is good for 68 years of video, that should be enough for
everyone :)
|
|
|
|
| |
Use nullptr, add an explicit cast and remove an unused variable.
|
| |
|
| |
|
|
|
|
|
|
| |
use nullptr instead of 0, and add a static_cast to document that we
don't need floating point. QVariant::toLongLong() doesn't work with
1234.1234.
|
|
|
|
|
|
|
|
|
|
| |
Use QRegularExpression instead of QRegExp, since the former is
recommended. Escape the filename, so we don't have to worry about
special chars and then match line by line. If there is a number at the
end of the found subject, remove it.
The former logic with QRegExp, indexOf and no escape wouldn't match
files with whitespaces and special chars...
|
| |
|
| |
|
|
|
|
|
| |
Add a new label to the statusBar: When it's green the FileCopier is
idle, when working, show the count.
|
| |
|
|
|
|
| |
No need for the ProgressBar in the status line any more...
|
|
|
|
|
| |
Slowed down startup by minutes! Dunno why, don't really care. If you
need the search dialog, wait for it then :)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hmm, as it turns out QFile does a much better, e.g. faster, job than my
open-coded file copy with a progress dialog.
I always wondered why it only did 150-170Mbit. I thought that it was
just the calculation, but now I have 400 Mbit, and it still stalls at
150 Mbit.
QFile::copy maxes out the line, so get rid of the ProgressDialog and
show a status message instead.
Copy can be canceled by the context menu, but FileCopier will always
finish the current file, because I don't want to lock and unlock the
CancelMutex during copy. Besides, QFile::copy doesn't admit that :)
|
| |
|
|
|
|
| |
Not sure if this is the way to go, but it works for now...
|
|
|
|
|
| |
Files can be copied without us knowing, so check for it even if we have
a cache entry.
|
|
|
|
| |
mDataV wasn't cleared. Fix it!
|
|
|
|
|
|
|
|
|
|
| |
Well, as it says, this is pretty much guesswork. I didn't think that the
subject itself could contain a ',', but reality proved me wrong.
A common denominator seems to be 'yEnc,' at the end of the subject, so
first check for that and split there before going for the default.
Most likely it's not the last change to this function :(
|
|
|
|
|
|
|
| |
Just a one line change, but a hard one. The SearchDialog context menu
looked quite strange after applying the style sheet for alternating row
colors. Qt inherits them to all child objects, but that's not what we
want. So restrict it to QTreeViews.
|
|
|
|
| |
Missed them when I committed the alternating row color changes.
|
|
|
|
|
| |
I guess there was a valid reason to block, but that's gone now. Couldn't
bother to stare at the history...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Once again, surprisingly difficult, as you can see on the number of
changed files.
Coding the configuration options wasn't that difficult, but actually
using them was. As it turned out, the default style on Windows doesn't
use QApplication::palette() at all, though it does honor
setAlternatingRowColors(). It just doesn't use the palette colors, but
style sheets. Took me a while to figure out.
So, there's always another layer of indirection: First, add all
QTreeViews to Globals::views, then create a helper to set the style
sheet.
|
|
|
|
|
| |
Select the first item if we have a result. Also check if we have already
set the override cursor to prevent a constant busy cursor.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
CTRL+F: search filename
CTRL+L: select all and focus search
CTRL+M: search actor
CTRL+T: search title
CTRL+X: hide
Unfortunately, it's surprisingly hard to capture CTRL+A, so I chose CTRL
+M (m for model) for actor search. CTRL+A is consumed by some other
Widget and never reaches SearchDialog. Maybe an EventFilter in the
parent or the MainWindow would work, but that's not worth it.
|
| |
|
| |
|
|
|
|
|
| |
Get rid of Q_FOREARCH, use type safe connect syntax, remove members that
don't have to be members, the usual.
|
| |
|
|
|
|
| |
to type safe connect and weed out Q_FOREACH.
|
| |
|
|
|
|
|
|
| |
Subclass QTreeView to show a custom context menu. Since the depth of
some items is > 1, add an option to expand and collapse a node
recursively.
|
| |
|
|
|
|
| |
Replacement: SearchDialog
|
|
|
|
|
| |
If in FileWidget, show and raise SearchDialog on CTRL+s, hide it on CTRL
+x. Show busy cursor while searching.
|