Changeset 769 for trunk/tools/assistant/lib/qhelpsearchquerywidget.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/tools/assistant/lib/qhelpsearchquerywidget.cpp
r651 r769 149 149 150 150 // make sure we won't end up with an empty string 151 foreach (const QString escapeChar, escapableCharsList) {151 foreach (const QString escapeChar, escapableCharsList) { 152 152 if (retValue.contains(escapeChar)) 153 153 retValue.replace(escapeChar, QLatin1String("")); … … 156 156 return retValue; 157 157 158 retValue = text; // now real y escape the string...159 foreach (const QString escapeChar, escapableCharsList) {158 retValue = text; // now realy escape the string... 159 foreach (const QString escapeChar, escapableCharsList) { 160 160 if (retValue.contains(escapeChar)) 161 161 retValue.replace(escapeChar, escape + escapeChar); … … 318 318 if (!lst.isEmpty()) { 319 319 QStringList fuzzy; 320 foreach (const QString term, lst)320 foreach (const QString term, lst) 321 321 fuzzy += buildTermList(escapeString(term)); 322 322 queryList.append(QHelpSearchQuery(QHelpSearchQuery::FUZZY, fuzzy)); … … 326 326 if (!lst.isEmpty()) { 327 327 QStringList without; 328 foreach (const QString term, lst)328 foreach (const QString term, lst) 329 329 without.append(escapeString(term)); 330 330 queryList.append(QHelpSearchQuery(QHelpSearchQuery::WITHOUT, without)); … … 340 340 if (!lst.isEmpty()) { 341 341 QStringList all; 342 foreach (const QString term, lst)342 foreach (const QString term, lst) 343 343 all.append(escapeString(term)); 344 344 queryList.append(QHelpSearchQuery(QHelpSearchQuery::ALL, all)); … … 348 348 if (!lst.isEmpty()) { 349 349 QStringList atLeast; 350 foreach (const QString term, lst)350 foreach (const QString term, lst) 351 351 atLeast += buildTermList(escapeString(term)); 352 352 queryList.append(QHelpSearchQuery(QHelpSearchQuery::ATLEAST, atLeast)); … … 534 534 535 535 /*! 536 Returns a list of quer ys to use in combination with the search engines536 Returns a list of quers to use in combination with the search engines 537 537 search(QList<QHelpSearchQuery> &query) function. 538 538 */
Note:
See TracChangeset
for help on using the changeset viewer.