summaryrefslogtreecommitdiffstats
path: root/smglobals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smglobals.cpp')
-rw-r--r--smglobals.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/smglobals.cpp b/smglobals.cpp
index 7fb928f..2ed698c 100644
--- a/smglobals.cpp
+++ b/smglobals.cpp
@@ -21,9 +21,7 @@
#include <X11/extensions/Xfixes.h>
#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");