summaryrefslogtreecommitdiffstats
path: root/dbanalyzer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix setAlternatignRowColorsArno2013-04-101-20/+8
| | | | | | | | | | | | | | | | | | | | 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...
* Fix ColorsArno2013-03-171-0/+5
| | | | | | | 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...
* Port to Qt5Arno2013-03-031-10/+10
| | | | | | | | * 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 try to read first item in DbAnalyzerDialog when list is emptyArno2011-12-281-0/+3
| | | | | Don't crash when data is empty in DbAnalyzerDialog::populate or the last item was deleted.
* Delete items in DbAnalyzer (again)Arno2011-12-281-1/+11
| | | | | While making it possible to mark items in DbAnalyzerDialog I removed the button for deleting items. That is obviously wrong, fix it.
* Mark items in DbAnalyzerDialogArno2011-12-281-14/+142
| | | | | | | | | 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 DbAnalyzerDialog non-modalArno2011-12-171-3/+4
| | | | | | | 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.
* Implement No Covers in DbAnalyzerArno2011-12-171-38/+51
| | | | | | 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.
* Added total count to DbAnalyzerDialogArno2011-12-171-3/+25
| | | | Show number of items in current tab.
* Added refresh to DbAnalyzerDialogArno2011-12-171-0/+11
| | | | | Well, right now the queries are cheap, so don't bother with removing items from the model and just repopulate it completely.
* Added stray genres checkArno2011-12-171-4/+47
| | | | | Mostly copy and paste from stray actors check. Generalized fetching data for stray items.
* Implemented delete stray actorsArno2011-12-171-13/+87
| | | | | Added a tab to DbAnalyzerDialog for actors that aren't associated with a movie and make it possible to delete them.
* Fix no Actors dialogArno2011-12-171-21/+14
| | | | | Show either part number or subtitle in no actors dialog. Also make double clicking an item work.
* DbAnalyzer first tryArno2011-12-161-0/+160
Well, trying to join the consistencyChecker and the check for stray actors/genres. First try :)