QHelpSearchQuery Class

The QHelpSearchQuery class contains the field name and the associated search term 更多...

头: #include <QHelpSearchQuery>
Since: Qt 4.4

公共类型

enum FieldName { DEFAULT, FUZZY, WITHOUT, PHRASE, ALL, ATLEAST }

公共函数

QHelpSearchQuery ()
QHelpSearchQuery (FieldName field , const QStringList & wordList )

详细描述

The QHelpSearchQuery class contains the field name and the associated search term

The QHelpSearchQuery class contains the field name and the associated search term. Depending on the field the search term might get split up into separate terms to be parsed differently by the search engine.

另请参阅 QHelpSearchQueryWidget .

成员类型文档编制

enum QHelpSearchQuery:: FieldName

This enum type specifies the field names that are handled by the search engine.

常量 描述
QHelpSearchQuery::DEFAULT 0 the default field provided by the search widget, several terms should be split and stored in the word list except search terms enclosed in quotes.
QHelpSearchQuery::FUZZY 1 a field only provided in use with clucene. Terms should be split in separate words and passed to the search engine.
QHelpSearchQuery::WITHOUT 2 a field only provided in use with clucene. Terms should be split in separate words and passed to the search engine.
QHelpSearchQuery::PHRASE 3 a field only provided in use with clucene. Terms should not be split in separate words.
QHelpSearchQuery::ALL 4 a field only provided in use with clucene. Terms should be split in separate words and passed to the search engine
QHelpSearchQuery::ATLEAST 5 a field only provided in use with clucene. Terms should be split in separate words and passed to the search engine

成员函数文档编制

QHelpSearchQuery:: QHelpSearchQuery ()

Constructs a new empty QHelpSearchQuery .

QHelpSearchQuery:: QHelpSearchQuery ( FieldName field , const QStringList & wordList )

构造新的 QHelpSearchQuery and initializes it with the given field and wordList .