QHelpIndexWidget Class

The QHelpIndexWidget class provides a list view displaying the QHelpIndexModel. 更多...

头文件: #include <QHelpIndexWidget>
qmake: QT += help
开始支持版本: Qt 4.4
基类: QListView

公有槽函数

void activateCurrentItem()
void filterIndices(const QString &filter, const QString &wildcard = QString())

信号

void linkActivated(const QUrl &link, const QString &keyword)
void linksActivated(const QMap<QString, QUrl> &links, const QString &keyword)

其他继承的成员

详细描述

The QHelpIndexWidget class provides a list view displaying the QHelpIndexModel.

成员函数

[slot] void QHelpIndexWidget::activateCurrentItem()

Activates the current item which will result eventually in the emitting of a linkActivated() or linksActivated() signal.

[slot] void QHelpIndexWidget::filterIndices(const QString &filter, const QString &wildcard = QString())

Filters the indices according to filter or wildcard. The item with the best match is set as current item.

参见 QHelpIndexModel::filter().

[signal] void QHelpIndexWidget::linkActivated(const QUrl &link, const QString &keyword)

This signal is emitted when an item is activated and its associated link should be shown. To know where the link belongs to, the keyword is given as a second paremeter.

[signal] void QHelpIndexWidget::linksActivated(const QMap<QString, QUrl> &links, const QString &keyword)

This signal is emitted when the item representing the keyword is activated and the item has more than one link associated. The links consist of the document titles and their URLs.