summaryrefslogtreecommitdiffstats
path: root/seriesmetadatamodel.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup closeEventArno2013-07-271-8/+0
| | | | | | | | | | Don't try to delete all the prepared statements manually. Get rid of the ~destructors and just close the QSqlDatabase. close() deletes all Statements. Also, quit() all QThreads on closeEvent() except CompleterProducer. When the experimental archive view gets merged, that QThread is gone. No need to bother...
* Fix setAlternatignRowColorsArno2013-04-101-7/+2
| | | | | | | | | | | | | | | | | | | | 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/+1
| | | | | | | 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 :)
* Fix for metadataArno2012-05-041-0/+2
| | | | | | Long standing bug, since introducing metadata. Comments were never saved into the database. The model did The Right Thing, but forgot to add it everywhere. NewMovieWizard is not tested, though.
* Turn metadata display into a QTreeViewArno2011-07-081-159/+134
| | | | | | | This wasn't as easy as it sounds. I had to completely redesign the SeriesMetadataModel. Now it's a hybrid between a ListModel and a TreeModel. The actual data is held in a QList<QVariant>, the tree is only for display.
* Show metadata in ArchiveViewArno2011-02-201-0/+55
| | | | | Added a widget to display metadata beside actors and genres when available
* Finished metadataArno2011-01-271-0/+274
Created a modes for metadata, revamped NewMovieWizard to use the model and created a MetadataWidget to edit and display metadata.