QHelpFilterData 類

QHelpFilterData 類提供的過濾細節用於 QHelpFilterEngine . 更多...

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

該類在 Qt 5.13 引入。

公共函數

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

詳細描述

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.

另請參閱 QHelpFilterEngine .

成員函數文檔編製

QHelpFilterData:: QHelpFilterData ( QHelpFilterData && other )

Move-constructs a QHelpFilterData instance, making it point at the same object that other 所指嚮的。

QHelpFilterData:: QHelpFilterData (const QHelpFilterData & other )

構造副本為 other .

QHelpFilterData:: QHelpFilterData ()

Constructs the empty filter.

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

移動賦值 other 到此 QHelpFilterData 實例。

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

賦值 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.

另請參閱 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.

另請參閱 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.

另請參閱 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.

另請參閱 setVersions ().