summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Last batch of clang warnings!Arno2018-12-091-1/+1
|
* Fix clang warnings for torrent*Arno2018-12-093-3/+3
|
* Clang fixes for ShemovCleanerArno2018-12-092-4/+4
|
* Fix clang warnings in search*Arno2018-12-092-2/+2
|
* Fix clang warningsArno2018-12-092-3/+3
| | | | | nullptr and one stupid explicit conversion that turned into an implicit conversion...
* Some more second fixesArno2018-12-091-3/+3
|
* Fix nullptr warnings in FileSorterArno2018-12-091-2/+2
|
* Fix implicit casts in FileDisplayArno2018-12-093-8/+7
| | | | | | 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 :)
* Fix clang warningsArno2018-12-092-5/+4
| | | | Use nullptr, add an explicit cast and remove an unused variable.
* Fix nullptr warning in FileCopierArno2018-12-091-1/+1
|
* Fix nullptr warnings in ConfigurationWidgetArno2018-12-091-1/+1
|
* Fix clang warnings in FileWidgetArno2018-12-092-4/+4
| | | | | | 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.
* Improve subject guessingArno2018-12-091-13/+18
| | | | | | | | | | 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...
* Gather data when FileCopier is doneArno2018-07-301-0/+1
|
* Cancel copying when clicking on status bar itemArno2018-07-302-0/+19
|
* Give some indication that we're copyingArno2018-07-305-0/+35
| | | | | Add a new label to the statusBar: When it's green the FileCopier is idle, when working, show the count.
* Update free space after deleting filesArno2018-07-301-0/+3
|
* Remove useless ProgressBarArno2018-06-134-15/+0
| | | | No need for the ProgressBar in the status line any more...
* Remove ClearAndSelectFirstArno2018-06-132-17/+0
| | | | | Slowed down startup by minutes! Dunno why, don't really care. If you need the search dialog, wait for it then :)
* Speed up file copyArno2018-06-137-173/+22
| | | | | | | | | | | | | | | | 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 :)
* Refresh descript.ion before guessing subjectArno2018-02-191-0/+1
|
* Try to improve subject matchingArno2018-02-191-2/+3
| | | | Not sure if this is the way to go, but it works for now...
* Don't cache copied statusArno2018-02-031-0/+3
| | | | | Files can be copied without us knowing, so check for it even if we have a cache entry.
* Clear search data on new searchArno2018-02-032-10/+23
| | | | mDataV wasn't cleared. Fix it!
* Fix subject guessingArno2018-02-031-3/+8
| | | | | | | | | | 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 :(
* Do not cascade style sheets to QMenuArno2018-02-031-1/+1
| | | | | | | 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.
* Remove left over callsArno2018-02-031-2/+0
| | | | Missed them when I committed the alternating row color changes.
* Do not block signals in FileWidgetArno2018-02-031-2/+0
| | | | | I guess there was a valid reason to block, but that's gone now. Couldn't bother to stare at the history...
* Implement alternating row colorsArno2018-02-0311-1/+110
| | | | | | | | | | | | | | | 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 first result in SearchDialogArno2018-02-031-2/+12
| | | | | 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.
* Add keyboard shortcuts in SearchDialogArno2018-02-032-2/+21
| | | | | | | | | | | | | 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.
* Set appropriate windowTitle for SearchDialogArno2018-02-031-0/+6
|
* Remove Q_FOREARCH from viewer.cppArno2018-02-031-1/+1
|
* Clean up TorrentWidgetArno2018-02-032-25/+22
| | | | | Get rid of Q_FOREARCH, use type safe connect syntax, remove members that don't have to be members, the usual.
* Get rid of Q_FOREACH in TorrentParserArno2018-02-031-2/+2
|
* Convert TorrentDisplayArno2018-02-021-6/+6
| | | | to type safe connect and weed out Q_FOREACH.
* Add filenames when searching for actorsArno2018-02-022-0/+11
|
* Implement context menu for search resultsArno2018-02-025-6/+91
| | | | | | 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.
* Icon fixesArno2018-02-023-12/+12
|
* Remove search and actor WidgetsArno2018-02-027-594/+2
| | | | Replacement: SearchDialog
* Add CTRL+S shortcut for SearchDialogArno2018-02-022-0/+20
| | | | | If in FileWidget, show and raise SearchDialog on CTRL+s, hide it on CTRL +x. Show busy cursor while searching.
* Raise and show SearchDialog on CTRL+SArno2018-02-021-2/+2
|
* Implement actor search in SearchDialogArno2018-02-022-3/+105
|
* Read and write settings for SearchDialogArno2018-02-023-1/+28
|
* Get genres for search dataArno2018-02-022-14/+25
|
* Use Helper::icon in SearchDialogArno2018-02-023-9/+14
| | | | | Once again this should have been 2 commits: one for Helper::icon and another one for making font boldness selectable, but well...
* Show actors in SearchDialogArno2018-02-024-17/+67
| | | | | | | 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.
* Implement Filename search in SearchDialogArno2018-02-024-11/+54
|
* Implement a useful searchArno2018-02-017-3/+192
| | | | | | 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).
* Sort copy dirs whenever possibleArno2018-02-014-8/+17
|