| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Use item instead of directory in var and function names to make clear
that this a general purpose widget.
Introduce a mode, so we can hide the browse button if we're not
selecting directories.
Make the label configurable and use different icons for folders or other
items.
|
|
|
|
|
| |
It's much more general purpose than I thought. I'm gonna reuse the code
for MIME-type filters later on.
|
| |
|
|
|
|
|
|
| |
This Widget lets you select a list of directories. It's basically about
code reuse. We're gonna need this later when implementing the favorite
directories feature.
|
|
|
|
|
| |
Convert to type safe connect syntax and remove Q_FOREACH. Hopefully no
functional changes :)
|
|
|
|
|
|
| |
Implement functions to remove files from cached data, or clear it
completely. This may be necessary if something happened without us
knowing, e.g. a file was copied by another program.
|
|
|
|
| |
No functional changes.
|
|
|
|
|
| |
Implement looking up the cache dir as Helper::function. Create it if it
doesn't exist.
|