From e0b8f04b18ababa819e2e0f019c76dcca971b51a Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 6 Feb 2014 18:53:53 +0100 Subject: First version of Archive Browser First try to reimplement "Move to archive" in another way. Implement an archive browser showing only Series with local parts in another tab. This part works for now :) --- smglobals.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'smglobals.cpp') 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; } -- cgit v1.2.3-70-g09d2