| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
*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 :)
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Slowed down startup by minutes! Dunno why, don't really care. If you
need the search dialog, wait for it then :)
|
|
|
|
| |
mDataV wasn't cleared. Fix it!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 the first item if we have a result. Also check if we have already
set the override cursor to prevent a constant busy cursor.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
If in FileWidget, show and raise SearchDialog on CTRL+s, hide it on CTRL
+x. Show busy cursor while searching.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Once again this should have been 2 commits: one for Helper::icon and
another one for making font boldness selectable, but well...
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
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).
|