Obsolete Members for QHelpEngineCore

以下成員源於類 QHelpEngineCore 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

特性

公共函數

(棄用) bool addCustomFilter (const QString & filterName , const QStringList & 屬性 )
(棄用) QString currentFilter () const
(棄用) QStringList customFilters () const
(棄用) QList<QUrl> 文件 (const QString namespaceName , const QStringList & filterAttributes , const QString & extensionFilter = {})
(棄用) QList<QStringList> filterAttributeSets (const QString & namespaceName ) const
(棄用) QStringList filterAttributes () const
(棄用) QStringList filterAttributes (const QString & filterName ) const
(棄用) bool removeCustomFilter (const QString & filterName )
(棄用) void setCurrentFilter (const QString & filterName )

信號

(棄用) void currentFilterChanged (const QString & newFilter )
(棄用) void readersAboutToBeInvalidated ()

特性文檔編製

[deprecated] currentFilter : QString

This property is deprecated. We strongly advise against using it in new code.

This property holds the name of the custom filter currently applied.

QHelpFilterEngine::activeFilter () 應該被使用以取而代之。

Setting this property will save the new custom filter permanently in the help collection file. To set a custom filter without saving it permanently, disable the auto save filter mode.

訪問函數:

QString currentFilter () const
void setCurrentFilter (const QString & filterName )

另請參閱 autoSaveFilter ().

成員函數文檔編製

[deprecated] bool QHelpEngineCore:: addCustomFilter (const QString & filterName , const QStringList & 屬性 )

This function is deprecated. We strongly advise against using it in new code.

QHelpFilterEngine::setFilterData () 應該被使用以取而代之。

Adds the new custom filter filterName . The filter attributes are specified by attributes . If the filter already exists, its attribute set is replaced. The function returns true if the operation succeeded, otherwise it returns false.

另請參閱 customFilters () 和 removeCustomFilter ().

[signal, deprecated] void QHelpEngineCore:: currentFilterChanged (const QString & newFilter )

This function is deprecated. We strongly advise against using it in new code.

QHelpFilterEngine::filterActivated () 應該被使用以取而代之。

This signal is emitted when the current filter is changed to newFilter .

[deprecated] QStringList QHelpEngineCore:: customFilters () const

This function is deprecated. We strongly advise against using it in new code.

QHelpFilterEngine::filters () 應該被使用以取而代之。

Returns a list of custom filters.

另請參閱 addCustomFilter () 和 removeCustomFilter ().

[deprecated] QList < QUrl > QHelpEngineCore:: 文件 (const QString namespaceName , const QStringList & filterAttributes , const QString & extensionFilter = {})

This function is deprecated. We strongly advise against using it in new code.

files() should be used instead.

Returns a list of files contained in the Qt compressed help file namespaceName . The files can be filtered by filterAttributes as well as by their extension extensionFilter (e.g. 'html').

[deprecated] QList < QStringList > QHelpEngineCore:: filterAttributeSets (const QString & namespaceName ) const

This function is deprecated. We strongly advise against using it in new code.

QHelpFilterEngine::filterData () 應該被使用以取而代之。

Returns a list of filter attributes for the different filter sections defined in the Qt compressed help file with the given namespace namespaceName .

[deprecated] QStringList QHelpEngineCore:: filterAttributes () const

This function is deprecated. We strongly advise against using it in new code.

QHelpFilterEngine::availableComponents () 應該被使用以取而代之。

Returns a list of all defined filter attributes.

[deprecated] QStringList QHelpEngineCore:: filterAttributes (const QString & filterName ) const

This function is deprecated. We strongly advise against using it in new code.

QHelpFilterEngine::filterData () 應該被使用以取而代之。

Returns a list of filter attributes used by the custom filter filterName .

[signal, deprecated] void QHelpEngineCore:: readersAboutToBeInvalidated ()

This function is deprecated. We strongly advise against using it in new code.

[deprecated] bool QHelpEngineCore:: removeCustomFilter (const QString & filterName )

This function is deprecated. We strongly advise against using it in new code.

QHelpFilterEngine::removeFilter () 應該被使用以取而代之。

Returns true if the filter filterName was removed successfully, otherwise false.

另請參閱 addCustomFilter () 和 customFilters ().