| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Once again this should have been 2 commits: one for Helper::icon and
another one for making font boldness selectable, but well...
|
|
|
|
|
|
|
| |
This should have been two commits, really. One for the actors, and
another one for the icon helper.
Helper::icon returns an QIcon with a circle in bg color and the char c.
|
| |
|
|
|
|
|
|
| |
Display Title and Filename search as non-modal dialog, so one can
compare Files and Database. For now only Title search is implemented.
Filename search does nothing (yet).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This endeavor started out quite innocently: fix the connect syntax in
ProgressDialog, but it quickly became much more. Vom Höxchen aufs
Stöxchen :)
First I thought it would be nice to add a total count to the
ProgressDialog. Then I realized that I had QElapsedTimer::restart()
totally wrong. It returns the ms *since the last restart*! It doesn't
reset to zero, so fix that.
While testing that I noticed that the download speed was quite below
average, so change the buffer size and only check if we were cancelled
when the timer elapsed. But that wasn't it. Eventually I dug into my
firewall rules and routings to get it right.
|
|
|
|
|
|
|
| |
Use type safe connect syntax and remove one Q_FOREACH makro.
Make the reject button a non-member, but keep the OK button. I thought
about gettring rid of the latter, too, but deactivating OK when no match
is the most sensible way to go...
|
|
|
|
| |
use type safe connect syntax and make the QTabWidget a non-member.
|
|
|
|
|
|
| |
* use type safe connect syntax
* use lambdas as slot for selecting programs
* make accept and cancel non-members. They're not needed anywhere else.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
If a descript.ion file exists in the current directory of fileWidget,
read the subjects into a QStringList to determine the usenet subject
from within ShemovCleaner.
No more tedious task switching to the usenet client, just trigger "Guess
subject..." :)
|
| |
|
| |
|
|
|
|
|
| |
Update favorite dirs when adding or removing favorite directories. Also
try to keep the current selection.
|
|
|
|
| |
Forgot to set fd->seconds when gathering data.
|
|
|
|
|
|
| |
The MIME-type is a regular expression that can be configured. Show the
configured types in a QComboBox with the special value "<all>" at the
top, which invalidates the MIME type filter.
|