QHelpSearchQuery Class

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

Header: #include <QHelpSearchQuery>
qmake: QT += help
Since: Qt 4.4

Public Types

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

Public Functions

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

Detailed Description

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.

See also QHelpSearchQueryWidget.

Member Type Documentation

enum QHelpSearchQuery::​FieldName

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

ConstantValueDescription
QHelpSearchQuery::DEFAULT0the 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::FUZZY1a field only provided in use with clucene. Terms should be split in separate words and passed to the search engine.
QHelpSearchQuery::WITHOUT2a field only provided in use with clucene. Terms should be split in separate words and passed to the search engine.
QHelpSearchQuery::PHRASE3a field only provided in use with clucene. Terms should not be split in separate words.
QHelpSearchQuery::ALL4a field only provided in use with clucene. Terms should be split in separate words and passed to the search engine
QHelpSearchQuery::ATLEAST5a field only provided in use with clucene. Terms should be split in separate words and passed to the search engine

Member Function Documentation

QHelpSearchQuery::​QHelpSearchQuery()

Constructs a new empty QHelpSearchQuery.

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

Constructs a new QHelpSearchQuery and initializes it with the given field and wordList.

© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.