diff options
author | Arno <am@disconnect.de> | 2013-06-01 05:10:45 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-06-01 05:10:45 +0200 |
commit | 39223db7f24eb285af7f0b7a3b061d9a92453122 (patch) | |
tree | 4185836d77a3fb069702eadbc18ecb2d1d3b89fc | |
parent | ba8b78eb0b7b364f6ecc954f8b99b138dfc13981 (diff) | |
download | SheMov-39223db7f24eb285af7f0b7a3b061d9a92453122.tar.gz SheMov-39223db7f24eb285af7f0b7a3b061d9a92453122.tar.bz2 SheMov-39223db7f24eb285af7f0b7a3b061d9a92453122.zip |
Add new ArchiveModel to SmGlobals
-rw-r--r-- | smglobals.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/smglobals.cpp b/smglobals.cpp index 6652d0e..7b6e36c 100644 --- a/smglobals.cpp +++ b/smglobals.cpp @@ -22,6 +22,7 @@ #include "smglobals.h" #include "seriestreemodel.h" +#include "archivemodel.h" #include "filestreemodel.h" #include "mappingtablemodel.h" #include "seriesmetadatamodel.h" @@ -105,6 +106,10 @@ QAbstractItemModel *SmGlobals::model(const QString &which){ PicFilesModel *model = new PicFilesModel(headers); mModels.insert(which, model); } + }else if(which == "ArchiveModel"){ + QStringList headers = QStringList() << tr("Series") << tr("Series ID") << tr("Series part ID") << tr("Part") << tr("Type") << tr("Favorite") << tr("Subtitle") << tr("Is Local") << tr("Count"); + ArchiveModel *model = new ArchiveModel(headers); + mModels.insert(which, model); } return mModels.contains(which) ? mModels.value(which) : 0; } |