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/qhelpsearchindexwriter_default.cpp

    r651 r769  
    5656QT_BEGIN_NAMESPACE
    5757
    58 namespace qt {
    59     namespace fulltextsearch {
    60         namespace std {
     58namespace fulltextsearch {
     59namespace std {
    6160
    6261Writer::Writer(const QString &path)
     
    105104
    106105    QDataStream docStream(&docFile);
    107     foreach(const QStringList list, documentList) {
     106    foreach(const QStringList list, documentList) {
    108107        docStream << list.at(0);
    109108        docStream << list.at(1);
     
    127126void Writer::setIndexFile(const QString &namespaceName, const QString &attributes)
    128127{
    129     QString extention = namespaceName + QLatin1String("@") + attributes;
    130     indexFile = indexPath + QLatin1String("/indexdb40.") + extention;
    131     documentFile = indexPath + QLatin1String("/indexdoc40.") + extention;
     128    QString extenion = namespaceName + QLatin1String("@") + attributes;
     129    indexFile = indexPath + QLatin1String("/indexdb40.") + extenion;
     130    documentFile = indexPath + QLatin1String("/indexdoc40.") + extenion;
    132131}
    133132
     
    193192    this->m_indexFilesFolder = indexFilesFolder;
    194193
    195     start(QThread::NormalPriority);
     194    start(QThread::Priority);
    196195}
    197196
     
    227226    QStringList namespaces;
    228227    Writer writer(indexPath);
    229     foreach(const QString namespaceName, registeredDocs) {
     228    foreach(const QString namespaceName, registeredDocs) {
    230229        mutex.lock();
    231230        if (m_cancel) {
     
    243242            engine.filterAttributeSets(namespaceName);
    244243
    245         foreach (QStringList attributes, attributeSets) {
     244        foreach (attributes, attributeSets) {
    246245            // cleanup maybe old or unfinished files
    247246            writer.setIndexFile(namespaceName, attributes.join(QLatin1String("@")));
     
    267266            int docNum = 0;
    268267            const QStringList documentsList(documentsSet.toList());
    269             foreach(const QString url, documentsList) {
     268            foreach(const QString url, documentsList) {
    270269                if (m_cancel)
    271270                    return;
     
    348347            engine.filterAttributeSets(namespaceName);
    349348
    350         foreach (QStringList attributes, attributeSets) {
     349        foreach (attributes, attributeSets) {
    351350            writer.setIndexFile(namespaceName, attributes.join(QLatin1String("@")));
    352351            writer.removeIndex();
     
    380379}
    381380
    382         }   // namespace std
    383     }   // namespace fulltextsearch
    384 }   // namespace qt
     381}   // namespace std
     382}   // namespace fulltextsearch
    385383
    386384QT_END_NAMESPACE
Note: See TracChangeset for help on using the changeset viewer.