summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Show first file in TorrentWidgetHEADmasterArno2022-04-162-3/+9
| | | | When a torrent file is parseable, show the first filename in the view.
* Another round of Clang fixes...Arno2022-04-1612-51/+51
|
* Make free space label readable againArno2022-04-161-19/+2
| | | | Remove background colors and just show the numbers.
* Make it compile with qt6Arno2022-04-1616-41/+36
| | | | | | | *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 :)
* Fix race in updateCopyingArno2019-11-234-9/+9
| | | | | | | | | | 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.
* Use foreground color for copied indicatorArno2019-11-231-3/+1
| | | | With a dark theme darkBlue doesn't please the eye :)
* Remove windows lib path from project fileArno2019-11-231-28/+27
| | | | MSYS2 doesn't need it, and as a benefit it also builds on linux :)
* Fix deprecation warningsArno2019-11-232-2/+2
| | | | | | 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.
* Add paths to delete confirmation dialogArno2019-06-081-1/+4
| | | | | | | 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.
* 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.