tools/assistant/lib/qhelpenginecore.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
child 37 758a864f9613
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   117                 .absoluteFilePath();
   117                 .absoluteFilePath();
   118         }
   118         }
   119         QHelpDBReader *reader = new QHelpDBReader(absFileName,
   119         QHelpDBReader *reader = new QHelpDBReader(absFileName,
   120             QHelpGlobal::uniquifyConnectionName(info.fileName, this), this);
   120             QHelpGlobal::uniquifyConnectionName(info.fileName, this), this);
   121         if (!reader->init()) {
   121         if (!reader->init()) {
   122             emit q->warning(tr("Cannot open documentation file %1: %2!")
   122             emit q->warning(QHelpEngineCore::tr("Cannot open documentation file %1: %2!")
   123                 .arg(absFileName, reader->errorMessage()));
   123                 .arg(absFileName, reader->errorMessage()));
   124             continue;
   124             continue;
   125         }
   125         }
   126 
   126 
   127         readerMap.insert(info.namespaceName, reader);
   127         readerMap.insert(info.namespaceName, reader);
   404     return d->collectionHandler->customFilters();
   404     return d->collectionHandler->customFilters();
   405 }
   405 }
   406 
   406 
   407 /*!
   407 /*!
   408     Adds the new custom filter \a filterName. The filter attributes
   408     Adds the new custom filter \a filterName. The filter attributes
   409     are specified by \a attributes. The function returns false if
   409     are specified by \a attributes. If the filter already exists,
   410     the filter can not be added, e.g. when the filter already exists.
   410     its attribute set is replaced. The function returns true if
       
   411     the operation succeeded, otherwise it returns false.
   411 
   412 
   412     \sa customFilters(), removeCustomFilter()
   413     \sa customFilters(), removeCustomFilter()
   413 */
   414 */
   414 bool QHelpEngineCore::addCustomFilter(const QString &filterName,
   415 bool QHelpEngineCore::addCustomFilter(const QString &filterName,
   415                                       const QStringList &attributes)
   416                                       const QStringList &attributes)