- 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/qhelpsearchindexreader_default.cpp
r651 r769 53 53 QT_BEGIN_NAMESPACE 54 54 55 namespace qt { 56 namespace fulltextsearch { 57 namespace std { 55 namespace fulltextsearch { 56 namespace std { 58 57 59 58 namespace { … … 167 166 bool containsAll = true; 168 167 QStringList split = fileName.split(QLatin1String("@")); 169 foreach (const QString attribute, attributes) {168 foreach (const QString attribute, attributes) { 170 169 if (!split.contains(attribute, Qt::CaseInsensitive)) { 171 170 containsAll = false; … … 181 180 void Reader::setIndexFile(const QString &namespaceName, const QString &attributes) 182 181 { 183 QString exten tion = namespaceName + QLatin1String("@") + attributes;184 indexFile = indexPath + QLatin1String("/indexdb40.") + exten tion;185 documentFile = indexPath + QLatin1String("/indexdoc40.") + exten tion;182 QString extenion = namespaceName + QLatin1String("@") + attributes; 183 indexFile = indexPath + QLatin1String("/indexdb40.") + extenion; 184 documentFile = indexPath + QLatin1String("/indexdoc40.") + extenion; 186 185 } 187 186 … … 236 235 void Reader::searchInIndex(const QStringList &terms) 237 236 { 238 foreach (const QString term, terms) {237 foreach (const QString term, terms) { 239 238 QVector<Document> documents; 240 239 … … 255 254 QString title, url; 256 255 QVector<DocumentInfo> documentsInfo; 257 foreach(const Document doc, documents) {256 foreach(const Document doc, documents) { 258 257 info.docNumber = doc.docNumber; 259 258 info.frequency = doc.frequency; … … 520 519 521 520 QString queryTerm; 522 foreach (const QHelpSearchQuery query, queryList) {521 foreach (const QHelpSearchQuery query, queryList) { 523 522 if (query.fieldName == QHelpSearchQuery::DEFAULT) { 524 523 queryTerm = query.wordList.at(0); … … 542 541 // setup the reader 543 542 m_reader.setIndexPath(indexPath); 544 foreach(const QString namespaceName, registeredDocs) {543 foreach(const QString namespaceName, registeredDocs) { 545 544 mutex.lock(); 546 545 if (m_cancel) { … … 554 553 engine.filterAttributeSets(namespaceName); 555 554 556 foreach ( QStringListattributes, attributeSets) {555 foreach (attributes, attributeSets) { 557 556 // read all index files 558 557 m_reader.setIndexFile(namespaceName, attributes.join(QLatin1String("@"))); … … 578 577 if (!hits.isEmpty()) { 579 578 if (termSeq.isEmpty()) { 580 foreach (const DocumentInfo docInfo, hits) {579 foreach (const DocumentInfo docInfo, hits) { 581 580 mutex.lock(); 582 581 if (m_cancel) { … … 589 588 } 590 589 } else { 591 foreach (const DocumentInfo docInfo, hits) {590 foreach (const DocumentInfo docInfo, hits) { 592 591 mutex.lock(); 593 592 if (m_cancel) { … … 608 607 } 609 608 610 } // namespace std 611 } // namespace fulltextsearch 612 } // namespace qt 609 } // namespace std 610 } // namespace fulltextsearch 613 611 614 612 QT_END_NAMESPACE
Note:
See TracChangeset
for help on using the changeset viewer.