summaryrefslogtreecommitdiffstats
path: root/smglobals.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-07-27 11:31:08 +0200
committerArno <am@disconnect.de>2013-07-27 11:31:08 +0200
commit5cfaa2c755c52c2ccbdd88ea3239dafb120a179b (patch)
treeba0386df4e1ed60bb0d5be3090bba1a6622437cc /smglobals.cpp
parentfa4f4952b11b94ffa899e40c4f22070280a4a399 (diff)
downloadSheMov-5cfaa2c755c52c2ccbdd88ea3239dafb120a179b.tar.gz
SheMov-5cfaa2c755c52c2ccbdd88ea3239dafb120a179b.tar.bz2
SheMov-5cfaa2c755c52c2ccbdd88ea3239dafb120a179b.zip
Get rid of old archive
Yeah, finally it's gone! Lot's of useless, unneeded code vanished :)
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");