search gui advanced search panel: add checkbox to invert the meaning of the directory filter

This commit is contained in:
Jean-Francois Dockes
2011-03-30 19:15:40 +02:00
parent e61712fc90
commit 70a3fdd797
3 changed files with 18 additions and 10 deletions
+7
View File
@@ -399,6 +399,13 @@
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="direxclCB">
<property name="text">
<string>Invert</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
+2 -1
View File
@@ -351,7 +351,8 @@ void AdvSearch::runSearch()
if (!subtreeCMB->currentText().isEmpty()) {
QString current = subtreeCMB->currentText();
sdata->setTopdir((const char*)subtreeCMB->currentText().toUtf8());
sdata->setTopdir((const char*)subtreeCMB->currentText().toUtf8(),
direxclCB->isChecked());
// Keep history list clean and sorted. Maybe there would be a
// simpler way to do this
list<QString> entries;