The QHelpContentModel class provides a model that supplies content to views. 更多...
| 頭: | #include <QHelpContentModel> |
| Since: | 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 |
| virtual QVariant | data (const QModelIndex & index , int role ) const |
| virtual QModelIndex | index (int row , int column , const QModelIndex & parent = QModelIndex()) const |
| virtual QModelIndex | parent (const QModelIndex & index ) const |
| virtual int | rowCount (const QModelIndex & parent = QModelIndex()) const |
| void | contentsCreated () |
| void | contentsCreationStarted () |
The QHelpContentModel class provides a model that supplies content to views.
Destroys the help content model.
[虛擬]
int
QHelpContentModel::
columnCount
(const
QModelIndex
&
parent
= QModelIndex()) const
重實現自 QAbstractItemModel::columnCount ().
Returns the number of columns under the given parent . Currently returns always 1.
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 () 發射。
另請參閱 isCreatingContents ().
Creates new contents by querying the help system for contents specified for the customFilterName .
[虛擬]
QVariant
QHelpContentModel::
data
(const
QModelIndex
&
index
,
int
role
) const
重實現自 QAbstractItemModel::data ().
返迴的數據存儲在給定 role 為項引用通過 index .
[虛擬]
QModelIndex
QHelpContentModel::
index
(
int
row
,
int
column
, const
QModelIndex
&
parent
= QModelIndex()) const
重實現自 QAbstractItemModel::index ().
返迴模型中的項索引,指定通過給定 row , column and parent 索引。
Returns true if the contents are currently rebuilt, otherwise false.
[虛擬]
QModelIndex
QHelpContentModel::
parent
(const
QModelIndex
&
index
) const
重實現自 QAbstractItemModel::parent ().
返迴模型項的父級采用給定 index , or QModelIndex() if it has no parent.
[虛擬]
int
QHelpContentModel::
rowCount
(const
QModelIndex
&
parent
= QModelIndex()) const
重實現自 QAbstractItemModel::rowCount ().
Returns the number of rows under the given parent .