From 5cfaa2c755c52c2ccbdd88ea3239dafb120a179b Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 27 Jul 2013 11:31:08 +0200 Subject: Get rid of old archive Yeah, finally it's gone! Lot's of useless, unneeded code vanished :) --- smglobals.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'smglobals.cpp') diff --git a/smglobals.cpp b/smglobals.cpp index 7fb928f..2ed698c 100644 --- a/smglobals.cpp +++ b/smglobals.cpp @@ -21,9 +21,7 @@ #include #include "smglobals.h" -#include "seriestreemodel.h" #include "archivemodel.h" -#include "filestreemodel.h" #include "mappingtablemodel.h" #include "seriesmetadatamodel.h" #include "mappingtreemodel.h" @@ -65,19 +63,7 @@ SmGlobals *SmGlobals::instance(){ } QAbstractItemModel *SmGlobals::model(const QString &which){ - if(which == "SeriesModel"){ - if(!mModels.contains(which)){ - QStringList headers = QStringList() << tr("Series") << tr("Series ID") << tr("Series part ID") << tr("Part") << tr("Type") << tr("Favorite") << tr("Subtitle") << tr("Is Local"); - SeriesTreeModel *model = new SeriesTreeModel(headers); - mModels.insert(which, model); - } - }else if(which == "FilesModel"){ - if(!mModels.contains(which)){ - QStringList headers = QStringList() << tr("Name") << tr("Part") << tr("Size") << tr("Qual.") << tr("Dvd") << tr("Full Path") << tr("Size (int)") << tr("Type") << tr("Md5 sum") << tr("Series part ID") << tr("File ID") << tr("Seriespart") << tr("Display name") << tr("Dur./Size") << tr("Series name") << tr("Favorite"); - FilesTreeModel *model = new FilesTreeModel(headers); - mModels.insert(which, model); - } - }else if(which == "actors"){ + if(which == "actors"){ if(!mModels.contains(which)){ QStringList headers = QStringList() << tr("Actor") << tr("Id"); MappingTableModel *model = new MappingTableModel(headers, "actors"); -- cgit v1.2.3-70-g09d2