| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Well, what started as a try to simplify QTreeView ended in a mass header
murder...
What happened:
* I searched for a way to let every QTreeView honor the
setAlternatingRowcolors() setting. Unfortunately it isn't enough to just
set the global palette and set it to true. So every QTreeView is now
derived from SmTreeView
* SmTreeView registers itself with SmGlobals, so the property is set
_after_ it's constructed. It's definitely not enough to call it in the
constructor. I guess that's a bug. But it's enough to append the
SmTreeView to a QList<QWidget*> in SmGlobals and call it _after_ the
painting is done.
* As an added Bonus we can add virt. funcs to every SmTreeView at will
While at it I realized that most of the included headers were void, so
remove them. No idea what impact it has on the bin size...
|
|
|
|
|
|
|
| |
This is more a qt5-fix than a SmDirModel fix. The global palette doesn't
propagate any more, so we have to set the palette in every QTreeView
separately. Very annoying and tedious. Maybe I missed a Widget or two,
dunno...
|
|
|
|
|
|
|
|
| |
* Change #include to qt5
* Fix missing QX11Info
* use explicit constructor for QVariant(QColor)
* use beginResetModel() and endResetModel() instead of reset(). The
latter was removed. Hopefully it still works :)
|
|
|
|
|
| |
Don't crash when data is empty in DbAnalyzerDialog::populate or the last
item was deleted.
|
|
|
|
|
| |
While making it possible to mark items in DbAnalyzerDialog I removed the
button for deleting items. That is obviously wrong, fix it.
|
|
|
|
|
|
|
|
|
| |
It's now possible to mark items in DbAnalyzerDialog with a different
color, when there are no covers or actor information available on the
net. I enhanced SmTreeItem to contain a QVariant::foregroundColor, and
made SmTreeModel return it when QModelIndex::data with role
Qt::ForegroundRole is called. Maybe that could be useful for other
things like favorites and such...
|
|
|
|
|
|
|
| |
Make DbAnalyzerdialg a member of Shemov, so it can be shown non-modal.
So actors/genres can be edited while the dialog is open. It also has the
nice side effect that we can refresh the views after deleting stray
items.
|
|
|
|
|
|
| |
Added a search for movies with no covers to DbAnalyzer. Generalized the
no actors search to work with the result from the no covers query. This
commit obsoletes a lot of code in archivetreeview.
|
|
|
|
| |
Show number of items in current tab.
|
|
|
|
|
| |
Well, right now the queries are cheap, so don't bother with removing
items from the model and just repopulate it completely.
|
|
|
|
|
| |
Mostly copy and paste from stray actors check. Generalized fetching data
for stray items.
|
|
|
|
|
| |
Added a tab to DbAnalyzerDialog for actors that aren't associated with a
movie and make it possible to delete them.
|
|
|
|
|
| |
Show either part number or subtitle in no actors dialog. Also make
double clicking an item work.
|
|
Well, trying to join the consistencyChecker and the check for stray
actors/genres. First try :)
|