summaryrefslogtreecommitdiffstats
path: root/smglobals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smglobals.cpp')
-rw-r--r--smglobals.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/smglobals.cpp b/smglobals.cpp
index cd03cc4..58c6d98 100644
--- a/smglobals.cpp
+++ b/smglobals.cpp
@@ -29,6 +29,7 @@
#include "picfilesmodel.h"
#include "configurationdialog.h"
#include "archivecontroller.h"
+#include "archivebrowsermodel.h"
SmGlobals *SmGlobals::mInstance = 0;
@@ -95,6 +96,10 @@ QAbstractItemModel *SmGlobals::model(const QString &which){
QStringList headers = QStringList() << tr("Series") << tr("Series ID") << tr("Series part ID") << tr("Part") << tr("Type") << tr("Favorite") << tr("Subtitle") << tr("Count");
ArchiveModel *model = new ArchiveModel(headers);
mModels.insert(which, model);
+ }else if(which == "BrowserModel"){
+ QStringList headers = QStringList() << tr("Name") << tr("Generic Id") << tr("Node Type") << tr("Size") << tr("Quality") << tr("File Type") << tr("Full Path");
+ ArchiveBrowserModel *model = new ArchiveBrowserModel(headers);
+ mModels.insert(which, model);
}
return mModels.contains(which) ? mModels.value(which) : 0;
}