diff --git a/src/qtgui/ssearch_w.cpp b/src/qtgui/ssearch_w.cpp index 2dc13f41..20e4bd11 100644 --- a/src/qtgui/ssearch_w.cpp +++ b/src/qtgui/ssearch_w.cpp @@ -88,7 +88,7 @@ void SSearch::searchTypeChanged(int typ) // Also fix tooltips switch (typ) { case SST_LANG: - queryText->setToolTip( + QToolTip::add(queryText, "Enter query language expression. Cheat sheet:
\n" "term1 term2 : 'term1' and 'term2' in any field.
\n" "field:term1 : 'term1' in field 'field'.
\n" @@ -104,12 +104,13 @@ void SSearch::searchTypeChanged(int typ) ); break; case SST_FNM: - queryText->setToolTip("Enter file name wildcard expression."); + QToolTip::add(queryText, "Enter file name wildcard expression."); break; case SST_ANY: case SST_ALL: default: - queryText->setToolTip("Enter search terms here. Type ESC SPC for completions of current term."); + QToolTip::add(queryText, + "Enter search terms here. Type ESC SPC for completions of current term."); } }