- 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/qhelpsearchindexwriter_default.cpp
r651 r769 56 56 QT_BEGIN_NAMESPACE 57 57 58 namespace qt { 59 namespace fulltextsearch { 60 namespace std { 58 namespace fulltextsearch { 59 namespace std { 61 60 62 61 Writer::Writer(const QString &path) … … 105 104 106 105 QDataStream docStream(&docFile); 107 foreach(const QStringList list, documentList) {106 foreach(const QStringList list, documentList) { 108 107 docStream << list.at(0); 109 108 docStream << list.at(1); … … 127 126 void Writer::setIndexFile(const QString &namespaceName, const QString &attributes) 128 127 { 129 QString exten tion = namespaceName + QLatin1String("@") + attributes;130 indexFile = indexPath + QLatin1String("/indexdb40.") + exten tion;131 documentFile = indexPath + QLatin1String("/indexdoc40.") + exten tion;128 QString extenion = namespaceName + QLatin1String("@") + attributes; 129 indexFile = indexPath + QLatin1String("/indexdb40.") + extenion; 130 documentFile = indexPath + QLatin1String("/indexdoc40.") + extenion; 132 131 } 133 132 … … 193 192 this->m_indexFilesFolder = indexFilesFolder; 194 193 195 start(QThread:: NormalPriority);194 start(QThread::Priority); 196 195 } 197 196 … … 227 226 QStringList namespaces; 228 227 Writer writer(indexPath); 229 foreach(const QString namespaceName, registeredDocs) {228 foreach(const QString namespaceName, registeredDocs) { 230 229 mutex.lock(); 231 230 if (m_cancel) { … … 243 242 engine.filterAttributeSets(namespaceName); 244 243 245 foreach ( QStringListattributes, attributeSets) {244 foreach (attributes, attributeSets) { 246 245 // cleanup maybe old or unfinished files 247 246 writer.setIndexFile(namespaceName, attributes.join(QLatin1String("@"))); … … 267 266 int docNum = 0; 268 267 const QStringList documentsList(documentsSet.toList()); 269 foreach(const QString url, documentsList) {268 foreach(const QString url, documentsList) { 270 269 if (m_cancel) 271 270 return; … … 348 347 engine.filterAttributeSets(namespaceName); 349 348 350 foreach ( QStringListattributes, attributeSets) {349 foreach (attributes, attributeSets) { 351 350 writer.setIndexFile(namespaceName, attributes.join(QLatin1String("@"))); 352 351 writer.removeIndex(); … … 380 379 } 381 380 382 } // namespace std 383 } // namespace fulltextsearch 384 } // namespace qt 381 } // namespace std 382 } // namespace fulltextsearch 385 383 386 384 QT_END_NAMESPACE
Note:
See TracChangeset
for help on using the changeset viewer.