QHelpContentModel Class
The QHelpContentModel class provides a model that supplies content to views. 更多...
头文件: | #include <QHelpContentModel> |
qmake: | QT += help |
开始支持版本: | Qt 4.4 |
基类: | QAbstractItemModel |
公有函数
~QHelpContentModel() | |
QHelpContentItem * | contentItemAt(const QModelIndex &index) const |
void | createContents(const QString &customFilterName) |
bool | isCreatingContents() const |
重新实现的公有函数
virtual int | columnCount(const QModelIndex &parent = QModelIndex()) const override |
virtual QVariant | data(const QModelIndex &index, int role) const override |
virtual QModelIndex | index(int row, int column, const QModelIndex &parent = QModelIndex()) const override |
virtual QModelIndex | parent(const QModelIndex &index) const override |
virtual int | rowCount(const QModelIndex &parent = QModelIndex()) const override |
- 39 个公有函数继承自 QAbstractItemModel
- 32 个公有函数继承自 QObject
信号
void | contentsCreated() |
void | contentsCreationStarted() |
- 18 个信号继承自 QAbstractItemModel
- 2 个信号继承自 QObject
其他继承的成员
- 1 个属性继承自 QObject
- 2 个公有槽函数继承自 QAbstractItemModel
- 1 个公有槽函数继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 19 个受保护的函数继承自 QAbstractItemModel
- 9 个受保护的函数继承自 QObject
- 1 个受保护的槽函数继承自 QAbstractItemModel
- 2 个受保护的变量继承自 QObject
详细描述
The QHelpContentModel class provides a model that supplies content to views.
成员函数
QHelpContentModel::~QHelpContentModel()
Destroys the help content model.
[override virtual]
int QHelpContentModel::columnCount(const QModelIndex &parent = QModelIndex()) const
Reimplemented from QAbstractItemModel::columnCount().
Returns the number of columns under the given parent. Currently returns always 1.
QHelpContentItem *QHelpContentModel::contentItemAt(const QModelIndex &index) const
Returns the help content item at the model index position index.
[signal]
void QHelpContentModel::contentsCreated()
This signal is emitted when the contents have been created.
[signal]
void QHelpContentModel::contentsCreationStarted()
This signal is emitted when the creation of the contents has started. The current contents are invalid from this point on until the signal contentsCreated() is emitted.
参见 isCreatingContents().
void QHelpContentModel::createContents(const QString &customFilterName)
Creates new contents by querying the help system for contents specified for the customFilterName.
[override virtual]
QVariant QHelpContentModel::data(const QModelIndex &index, int role) const
Reimplemented from QAbstractItemModel::data().
Returns the data stored under the given role for the item referred to by the index.
[override virtual]
QModelIndex QHelpContentModel::index(int row, int column, const QModelIndex &parent = QModelIndex()) const
Reimplemented from QAbstractItemModel::index().
Returns the index of the item in the model specified by the given row, column and parent index.
bool QHelpContentModel::isCreatingContents() const
Returns true if the contents are currently rebuilt, otherwise false.
[override virtual]
QModelIndex QHelpContentModel::parent(const QModelIndex &index) const
Reimplemented from QAbstractItemModel::parent().
Returns the parent of the model item with the given index, or QModelIndex() if it has no parent.
[override virtual]
int QHelpContentModel::rowCount(const QModelIndex &parent = QModelIndex()) const
Reimplemented from QAbstractItemModel::rowCount().
Returns the number of rows under the given parent.