summaryrefslogtreecommitdiffstats
path: root/helper.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix implicit casts in FileDisplayArno2018-12-091-1/+1
| | | | | | 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 :)
* 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.
* Use Helper::icon in SearchDialogArno2018-02-021-1/+1
| | | | | 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/+2
| | | | | | | 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/+1
| | | | | Implement looking up the cache dir as Helper::function. Create it if it doesn't exist.
* Add preview for videosArno2016-11-271-0/+3
| | | | | | 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/+17
| | | | | Show each and everything ffprobe can extract from a video file and display it as a tree.
* Basic Version of FileWidgetArno2016-09-021-0/+10
It checks the DB for md5sums and colors the files accordingly. As I said: very basic!