diff options
Diffstat (limited to 'smglobals.cpp')
-rw-r--r-- | smglobals.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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; } |