diff --git a/src/qtgui/ssearch_w.cpp b/src/qtgui/ssearch_w.cpp index 8cfd16ed..33b077f6 100644 --- a/src/qtgui/ssearch_w.cpp +++ b/src/qtgui/ssearch_w.cpp @@ -77,7 +77,7 @@ int RclCompleterModel::rowCount(const QModelIndex &) const QVariant RclCompleterModel::data(const QModelIndex &index, int role) const { LOGDEB1("RclCompleterModel::data: row: " << index.row() << " role " << - role << "\n"); + role << "\n"); if (role != Qt::DisplayRole && role != Qt::EditRole && role != Qt::DecorationRole) { return QVariant(); @@ -216,7 +216,7 @@ void SSearch::onCompleterShown() LOGDEB0("SSearch::onCompleterShown: no completer\n"); return; } - QAbstractItemView *popup = queryText->completer()->popup(); + QAbstractItemView *popup = completer->popup(); if (!popup) { LOGDEB0("SSearch::onCompleterShown: no popup\n"); return; @@ -320,7 +320,8 @@ void SSearch::onCompletionActivated(const QString& text) void SSearch::onHistoryClicked() { - if (m_completermodel) { + if (m_completermodel) { + queryText->setCompleter(m_completer); m_completermodel->onPartialWord(SST_LANG, "", ""); queryText->completer()->complete(); } @@ -373,42 +374,42 @@ void SSearch::searchTypeChanged(int typ) switch (typ) { case SST_LANG: queryText->setToolTip( - // Do not modify the text here, test with the - // sshelp/qhelp.html file and a browser, then use - // sshelp/helphtmltoc.sh to turn to code and insert here -tr("
") + -tr("Query language cheat-sheet. In doubt: click Show Query. ") + -tr("You should really look at the manual (F1)
") + -tr("| What | Examples | ") + -tr("
|---|---|
| And | one two one AND two one && two |
| Or | one OR two one || two |
| Complex boolean. OR has priority, use parentheses ") + -tr("where needed | (one AND two) OR three |
| Not | -term |
| Phrase | \"pride and prejudice\" |
| Ordered proximity (slack=1) | \"pride prejudice\"o1 |
| Unordered proximity (slack=1) | \"prejudice pride\"po1 |
| Unordered prox. (default slack=10) | \"prejudice pride\"p |
| No stem expansion: capitalize | Floor |
| Field-specific | author:austen title:prejudice |
| AND inside field (no order) | author:jane,austen |
| OR inside field | author:austen/bronte |
| Field names | title/subject/caption author/from recipient/to filename ext |
| Directory path filter | dir:/home/me dir:doc |
| MIME type filter | mime:text/plain mime:video/* |
| Date intervals | date:2018-01-01/2018-31-12 ") + -tr("date:2018 date:2018-01-01/P12M |
| Size | size>100k size<1M |
Query language cheat-sheet. In doubt: click Show Query. ") + + tr("You should really look at the manual (F1)
") + + tr("| What | Examples | ") + + tr("
|---|---|
| And | one two one AND two one && two |
| Or | one OR two one || two |
| Complex boolean. OR has priority, use parentheses ") + + tr("where needed | (one AND two) OR three |
| Not | -term |
| Phrase | \"pride and prejudice\" |
| Ordered proximity (slack=1) | \"pride prejudice\"o1 |
| Unordered proximity (slack=1) | \"prejudice pride\"po1 |
| Unordered prox. (default slack=10) | \"prejudice pride\"p |
| No stem expansion: capitalize | Floor |
| Field-specific | author:austen title:prejudice |
| AND inside field (no order) | author:jane,austen |
| OR inside field | author:austen/bronte |
| Field names | title/subject/caption author/from recipient/to filename ext |
| Directory path filter | dir:/home/me dir:doc |
| MIME type filter | mime:text/plain mime:video/* |
| Date intervals | date:2018-01-01/2018-31-12 ") + + tr("date:2018 date:2018-01-01/P12M |
| Size | size>100k size<1M |