summaryrefslogtreecommitdiffstats
path: root/searchdialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Another round of Clang fixes...Arno2022-04-161-7/+7
|
* Make it compile with qt6Arno2022-04-161-1/+1
| | | | | | | *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 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.
* Remove ClearAndSelectFirstArno2018-06-131-16/+0
| | | | | Slowed down startup by minutes! Dunno why, don't really care. If you need the search dialog, wait for it then :)
* Clear search data on new searchArno2018-02-031-9/+22
| | | | mDataV wasn't cleared. Fix it!
* Implement alternating row colorsArno2018-02-031-0/+3
| | | | | | | | | | | | | | | 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-031-2/+20
| | | | | | | | | | | | | 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
|
* Add filenames when searching for actorsArno2018-02-021-0/+10
|
* Implement context menu for search resultsArno2018-02-021-2/+3
| | | | | | 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-021-6/+6
|
* Add CTRL+S shortcut for SearchDialogArno2018-02-021-0/+17
| | | | | If in FileWidget, show and raise SearchDialog on CTRL+s, hide it on CTRL +x. Show busy cursor while searching.
* Implement actor search in SearchDialogArno2018-02-021-2/+101
|
* Read and write settings for SearchDialogArno2018-02-021-0/+24
|
* Get genres for search dataArno2018-02-021-13/+23
|
* Use Helper::icon in SearchDialogArno2018-02-021-6/+11
| | | | | 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-17/+44
| | | | | | | 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-021-8/+50
|
* Implement a useful searchArno2018-02-011-0/+144
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).