Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/tools/assistant/lib/qhelpsearchindexreader_default.cpp

    r651 r769  
    5353QT_BEGIN_NAMESPACE
    5454
    55 namespace qt {
    56     namespace fulltextsearch {
    57         namespace std {
     55namespace fulltextsearch {
     56namespace std {
    5857
    5958namespace {
     
    167166        bool containsAll = true;
    168167        QStringList split = fileName.split(QLatin1String("@"));
    169         foreach (const QString attribute, attributes) {
     168        foreach (const QString attribute, attributes) {
    170169            if (!split.contains(attribute, Qt::CaseInsensitive)) {
    171170                containsAll = false;
     
    181180void Reader::setIndexFile(const QString &namespaceName, const QString &attributes)
    182181{
    183     QString extention = namespaceName + QLatin1String("@") + attributes;
    184     indexFile = indexPath + QLatin1String("/indexdb40.") + extention;
    185     documentFile = indexPath + QLatin1String("/indexdoc40.") + extention;
     182    QString extenion = namespaceName + QLatin1String("@") + attributes;
     183    indexFile = indexPath + QLatin1String("/indexdb40.") + extenion;
     184    documentFile = indexPath + QLatin1String("/indexdoc40.") + extenion;
    186185}
    187186
     
    236235void Reader::searchInIndex(const QStringList &terms)
    237236{
    238     foreach (const QString term, terms) {
     237    foreach (const QString term, terms) {
    239238        QVector<Document> documents;
    240239
     
    255254                QString title, url;
    256255                QVector<DocumentInfo> documentsInfo;
    257                 foreach(const Document doc, documents) {
     256                foreach(const Document doc, documents) {
    258257                    info.docNumber = doc.docNumber;
    259258                    info.frequency = doc.frequency;
     
    520519
    521520    QString queryTerm;
    522     foreach (const QHelpSearchQuery query, queryList) {
     521    foreach (const QHelpSearchQuery query, queryList) {
    523522        if (query.fieldName == QHelpSearchQuery::DEFAULT) {
    524523            queryTerm = query.wordList.at(0);
     
    542541    // setup the reader
    543542    m_reader.setIndexPath(indexPath);
    544     foreach(const QString namespaceName, registeredDocs) {
     543    foreach(const QString namespaceName, registeredDocs) {
    545544        mutex.lock();
    546545        if (m_cancel) {
     
    554553            engine.filterAttributeSets(namespaceName);
    555554
    556         foreach (QStringList attributes, attributeSets) {
     555        foreach (attributes, attributeSets) {
    557556            // read all index files
    558557            m_reader.setIndexFile(namespaceName, attributes.join(QLatin1String("@")));
     
    578577        if (!hits.isEmpty()) {
    579578            if (termSeq.isEmpty()) {
    580                 foreach (const DocumentInfo docInfo, hits) {
     579                foreach (const DocumentInfo docInfo, hits) {
    581580                    mutex.lock();
    582581                    if (m_cancel) {
     
    589588                }
    590589            } else {
    591                 foreach (const DocumentInfo docInfo, hits) {
     590                foreach (const DocumentInfo docInfo, hits) {
    592591                    mutex.lock();
    593592                    if (m_cancel) {
     
    608607}
    609608
    610         }   // namespace std
    611     }   // namespace fulltextsearch
    612 }   // namespace qt
     609}   // namespace std
     610}   // namespace fulltextsearch
    613611
    614612QT_END_NAMESPACE
Note: See TracChangeset for help on using the changeset viewer.