The QHelpContentModel class provides a model that supplies content to views. More...
#include <QHelpContentModel>
Inherits: QAbstractItemModel.
This class was introduced in Qt 4.4.
~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.
Reimplemented from 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.
This signal is emitted when the contents have been created.
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.
See also isCreatingContents().
Creates new contents by querying the help system for contents specified for the customFilterName.
Reimplemented from QAbstractItemModel::data().
Returns the data stored under the given role for the item referred to by the index.
Reimplemented from QAbstractItemModel::index().
Returns the index of the item in the model specified by the given row, column and parent index.
Returns true if the contents are currently rebuilt, otherwise false.
Reimplemented from QAbstractItemModel::parent().
Returns the parent of the model item with the given index, or QModelIndex() if it has no parent.
Reimplemented from QAbstractItemModel::rowCount().
Returns the number of rows under the given parent.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.