Definition at line 710 of file complexwidgets.cpp.
◆ ModelIndexIterator()
Definition at line 713 of file complexwidgets.cpp.
715 #ifndef QT_NO_LISTVIEW 718 #ifndef QT_NO_TREEVIEW 721 #ifndef QT_NO_TABLEVIEW T qobject_cast(QObject *object)
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const =0
Returns the index of the item in the model specified by the given row, column and parent index...
The QTreeView class provides a default model/view implementation of a tree view.
The QTableView class provides a default model/view implementation of a table view.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
QModelIndex child(int row, int column) const
Returns the child of the model index that is stored in the given row and column.
The QListView class provides a list or icon view onto a model.
QAbstractItemView * m_view
QModelIndex rootIndex() const
Returns the model index of the model's root item.
QAbstractItemModel * model() const
Returns the model that this view is presenting.
◆ current()
◆ isHidden()
bool ModelIndexIterator::isHidden |
( |
| ) |
const |
|
inline |
Definition at line 769 of file complexwidgets.cpp.
771 #ifndef QT_NO_LISTVIEW 775 #ifndef QT_NO_TREEVIEW 779 #ifndef QT_NO_TABLEVIEW
bool isRowHidden(int row, const QModelIndex &parent) const
Returns true if the item in the given row of the parent is hidden; otherwise returns false...
QModelIndex parent() const
Returns the parent of the model index, or QModelIndex() if it has no parent.
int row() const
Returns the row this model index refers to.
bool isRowHidden(int row) const
Returns true if the given row is hidden; otherwise returns false.
bool isRowHidden(int row) const
Returns true if the row is hidden; otherwise returns false.
◆ next()
bool ModelIndexIterator::next |
( |
int |
count = 1 | ) |
|
|
inline |
Definition at line 732 of file complexwidgets.cpp.
Referenced by QAccessibleItemView::childCount(), and QAccessibleItemView::childIndex().
733 for (
int i = 0; i < count; ++i) {
737 #ifndef QT_NO_TREEVIEW 748 while (row + 1 >= m->
rowCount(par)) {
QModelIndex sibling(int row, int column) const
Returns the sibling at row and column.
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const =0
Returns the number of rows under the given parent.
bool isExpanded(const QModelIndex &index) const
Returns true if the model item index is expanded; otherwise returns false.
QModelIndex parent() const
Returns the parent of the model index, or QModelIndex() if it has no parent.
virtual bool hasChildren(const QModelIndex &parent=QModelIndex()) const
Returns true if parent has any children; otherwise returns false.
int row() const
Returns the row this model index refers to.
const QAbstractItemModel * model() const
Returns a pointer to the model containing the item that this index refers to.
bool isValid() const
Returns true if this model index is valid; otherwise returns false.
The QAbstractItemModel class provides the abstract interface for item model classes.
QModelIndex child(int row, int column) const
Returns the child of the model index that is stored in the given row and column.
The QModelIndex class is used to locate data in a data model.
◆ list
◆ m_current
◆ m_view
◆ table
◆ tree
The documentation for this class was generated from the following file: