W3cubDocs

/Qt 5.15

QHelpFilterData Class

The QHelpFilterData class provides details for the filters used by QHelpFilterEngine. More...

Header: #include <QHelpFilterData>
qmake: QT += help
Since: Qt 5.13

This class was introduced in Qt 5.13.

Public Functions

QHelpFilterData(QHelpFilterData &&other)
QHelpFilterData(const QHelpFilterData &other)
QHelpFilterData()
QHelpFilterData & operator=(QHelpFilterData &&other)
QHelpFilterData & operator=(const QHelpFilterData &other)
~QHelpFilterData()
QStringList components() const
void setComponents(const QStringList &components)
void setVersions(const QList<QVersionNumber> &versions)
void swap(QHelpFilterData &other)
QList<QVersionNumber> versions() const

Detailed Description

By using setComponents() you may constrain the search results to documents that belong only to components specified on the given list. By using setVersions() you may constrain the search results to documents that belong only to versions specified on the given list.

See also QHelpFilterEngine.

Member Function Documentation

QHelpFilterData::QHelpFilterData(QHelpFilterData &&other)

Move-constructs a QHelpFilterData instance, making it point at the same object that other was pointing to.

QHelpFilterData::QHelpFilterData(const QHelpFilterData &other)

Constructs a copy of other.

QHelpFilterData::QHelpFilterData()

Constructs the empty filter.

QHelpFilterData &QHelpFilterData::operator=(QHelpFilterData &&other)

Move-assigns other to this QHelpFilterData instance.

QHelpFilterData &QHelpFilterData::operator=(const QHelpFilterData &other)

Assigns other to this filter and returns a reference to this filter.

QHelpFilterData::~QHelpFilterData()

Destroys the filter.

QStringList QHelpFilterData::components() const

Returns the component list that is used for filtering the search results.

See also setComponents().

void QHelpFilterData::setComponents(const QStringList &components)

Specifies the component list that is used for filtering the search results. Only results from components in the list components shall be returned.

See also components().

void QHelpFilterData::setVersions(const QList<QVersionNumber> &versions)

Specifies the version list that is used for filtering the search results. Only results from versions in the list versions shall be returned.

See also versions().

void QHelpFilterData::swap(QHelpFilterData &other)

Swaps the filter other with this filter. This operation is very fast and never fails.

QList<QVersionNumber> QHelpFilterData::versions() const

Returns the version list that is used for filtering the search results.

See also setVersions().

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qhelpfilterdata.html