summaryrefslogtreecommitdiffstats
path: root/helper.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Another round of Clang fixes...Arno2022-04-161-1/+1
|
* Fix deprecation warningsArno2019-11-231-1/+1
| | | | | | 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.
* Fix implicit casts in FileDisplayArno2018-12-091-6/+5
| | | | | | 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 :)
* 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.
* Implement alternating row colorsArno2018-02-031-0/+17
| | | | | | | | | | | | | | | 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.
* Icon fixesArno2018-02-021-1/+1
|
* Use Helper::icon in SearchDialogArno2018-02-021-2/+2
| | | | | 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-021-0/+19
| | | | | | | 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.
* Improve lookup of cache dirArno2018-01-041-0/+14
| | | | | Implement looking up the cache dir as Helper::function. Create it if it doesn't exist.
* Add preview for videosArno2016-11-271-0/+56
| | | | | | Grab 4 frames from a video and display them in the Viewer. First frame is @00:01:00, last at length - 1 minute, and the other two are in between: length / 4 * 2 and 3 (hardcoded).
* Add detailed video dialogArno2016-09-031-0/+67
| | | | | Show each and everything ffprobe can extract from a video file and display it as a tree.
* Basic Version of FileWidgetArno2016-09-021-0/+50
It checks the DB for md5sums and colors the files accordingly. As I said: very basic!