diff options
author | Arno <am@disconnect.de> | 2014-02-06 18:53:53 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2014-02-06 18:53:53 +0100 |
commit | e0b8f04b18ababa819e2e0f019c76dcca971b51a (patch) | |
tree | 58a1b0143fc6f06111cf21717fa9b43f932114cd /smglobals.cpp | |
parent | e07de4e0a1bd56aab8f4ee81d6db252e442c3d7a (diff) | |
download | SheMov-e0b8f04b18ababa819e2e0f019c76dcca971b51a.tar.gz SheMov-e0b8f04b18ababa819e2e0f019c76dcca971b51a.tar.bz2 SheMov-e0b8f04b18ababa819e2e0f019c76dcca971b51a.zip |
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 :)
Diffstat (limited to 'smglobals.cpp')
-rw-r--r-- | smglobals.cpp | 5 |
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; } |