From 9c85c8e441b5bc6bd9e6441a828599c137ea36be Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 7 Feb 2014 06:39:49 +0100 Subject: 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... --- smglobals.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smglobals.cpp') 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); } -- cgit v1.2.3-70-g09d2