From aaef34e66368a2803ae876d734809b69f0c258a2 Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 27 Jan 2011 13:06:32 +0100 Subject: Finished metadata Created a modes for metadata, revamped NewMovieWizard to use the model and created a MetadataWidget to edit and display metadata. --- smglobals.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'smglobals.cpp') diff --git a/smglobals.cpp b/smglobals.cpp index de71872..005c710 100644 --- a/smglobals.cpp +++ b/smglobals.cpp @@ -25,6 +25,7 @@ #include "seriestreemodel.h" #include "filestreemodel.h" #include "mappingtablemodel.h" +#include "seriesmetadatamodel.h" #include "pictureviewer.h" SmGlobals *SmGlobals::mInstance = 0; @@ -79,6 +80,12 @@ QAbstractItemModel *SmGlobals::model(const QString &which){ MappingTableModel *model = new MappingTableModel(headers, "genres"); mModels.insert(which, model); } + }else if(which == "SeriesMetadata"){ + if(!mModels.contains(which)){ + QStringList headers = QStringList() << tr("SeriesPartId") << tr("Release Year") << tr("Source Medium") << tr("Subject") << tr("Release Group") << tr("Encoder Options") << tr("Comment") << tr("Encoding Passes") << tr("Added"); + SeriesMetadataModel *model = new SeriesMetadataModel(headers); + mModels.insert(which, model); + } } return mModels.contains(which) ? mModels.value(which) : 0; } -- cgit v1.2.3-70-g09d2