summaryrefslogtreecommitdiffstats
path: root/torrentwidget.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Show first file in TorrentWidgetHEADmasterArno2022-04-161-1/+7
| | | | When a torrent file is parseable, show the first filename in the view.
* Another round of Clang fixes...Arno2022-04-161-7/+7
|
* Make it compile with qt6Arno2022-04-161-10/+8
| | | | | | | *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 :)
* Remove useless ProgressBarArno2018-06-131-5/+0
| | | | No need for the ProgressBar in the status line any more...
* Implement alternating row colorsArno2018-02-031-0/+1
| | | | | | | | | | | | | | | 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.
* Clean up TorrentWidgetArno2018-02-031-22/+22
| | | | | Get rid of Q_FOREARCH, use type safe connect syntax, remove members that don't have to be members, the usual.
* Remove QFileInfo::created() deprecation warningArno2017-12-211-2/+2
| | | | | Apparently that function is deprecated in Qt 5.10. As suggested, use QFileInfo::birthTime() instead.
* Keep sort order and column when gathering torrent dataArno2017-12-191-0/+4
| | | | | | | | | | This was a bit more complicated than thought. Just calling writeHeaderData unconditionally doesn't work, because it saves the headers on startup, when the widget isn't visible yet, so all columns have the same width. Fix it by checking if we're visible first. That almost worked. Almost, because after startup some columns had a different height! Setting uniformRowHeights() to true helped.
* Don't gatherData() when deleting torrentsArno2017-12-191-3/+10
| | | | | Just as before: delete the files and remove them from the view without a full parse.
* Don't gatherData() when moving torrentsArno2017-12-191-2/+9
| | | | Just move the files and remove them from the view without a full parse.
* Add free space widget to status barArno2016-11-271-1/+3
| | | | Red is used, green is free, obviously...
* Selections, selections...Arno2016-10-031-2/+24
| | | | | Remember selected items after refreshing the torrent view. Also correctly! select the first torrent on startup.
* Remove source torrent if it already exists in destArno2016-10-011-0/+7
| | | | Don't care if it's the same file...
* Add function guessSubtitleArno2016-10-011-1/+30
| | | | | Guess the subtitle from the torrent filename. It's more or less an arbitrary set of strings and regexes that can't be configured.
* Remember last move to directory...Arno2016-09-221-1/+4
|
* Ask if torrentcount > 100Arno2016-09-221-0/+7
| | | | It'll take a long time, so give the user a chance to cancel.
* Give feedback on gathering dataArno2016-09-221-3/+28
| | | | | | | Use the ProgressBar when gathering torrent data from a directory with many entries. Sprinkle processEvents() here and there to show the progress.
* Fix sorting in TorrentWidgetArno2016-09-171-0/+4
| | | | Sort files by DateTime instead of string comparison.
* Always select and set current first rowArno2016-09-161-0/+7
|
* Use enums in TorrentWidgetArno2016-09-051-21/+23
| | | | Revamp gatherData() to use Enums for colums, roles and data.
* Fix keyboard naviagtion for TorrentWidget tooArno2016-09-051-1/+27
| | | | For an explanation see commit eaaa0c165b83aba1227304eb1074098ac0028ae8
* Make actions localArno2016-09-051-2/+60
| | | | | Define actions in their respective Widgets instead of MainWindow and fix the menus and toolbars accordingly.
* Added copyToClipboard where applicableArno2016-08-281-0/+8
|
* Added configration dialogArno2016-08-201-9/+3
| | | | | Database connection options are now configurable. Hopefully it doesn't end up in an infinite loop if the credentials are not corrent...
* Revamped ShemovCleaner to a QTabWidgetArno2016-08-201-0/+269
It's a rather large commit. After renaming ShemovCleaner to TorrentWidget, I had to recreate ShemovCleaner as MainWindow with a single Tab. Then I created QActions for everything, including a QToolBar, a QMenu and a contetext Menu. For that the button bar at the bottom had to go. Oh, and I added some icons for the actions!