diff options
author | Arno <am@disconnect.de> | 2014-02-07 06:39:49 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2014-02-07 06:39:49 +0100 |
commit | 9c85c8e441b5bc6bd9e6441a828599c137ea36be (patch) | |
tree | d1e3eaab343aa2d85e9ea05ce49f73ceed8be97d /smglobals.cpp | |
parent | 3ac6968ebaf087aeb4bb3deeb1ded2bbbd54dfa5 (diff) | |
download | SheMov-9c85c8e441b5bc6bd9e6441a828599c137ea36be.tar.gz SheMov-9c85c8e441b5bc6bd9e6441a828599c137ea36be.tar.bz2 SheMov-9c85c8e441b5bc6bd9e6441a828599c137ea36be.zip |
Implement ArchiveBrowser filtering
Filter ArchiveBrowser by Quality and/or size:
* Quality: only show series with a quality less or equal
* Size: only show series still fitting onto the DVD
* Both: only show series with a quality less or equal _and_ still
fitting on the DVD
Use QItemSelection instead of going through the selected items in the
tree. Seems to work somehow...
Diffstat (limited to 'smglobals.cpp')
-rw-r--r-- | smglobals.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/smglobals.cpp b/smglobals.cpp index 58c6d98..b82ba3c 100644 --- a/smglobals.cpp +++ b/smglobals.cpp @@ -97,7 +97,7 @@ QAbstractItemModel *SmGlobals::model(const QString &which){ 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"); + QStringList headers = QStringList() << tr("Name") << tr("Generic Id") << tr("Node Type") << tr("Size") << tr("Quality") << tr("File Type") << tr("Full Path") << tr("Selected"); ArchiveBrowserModel *model = new ArchiveBrowserModel(headers); mModels.insert(which, model); } |