|
Qt 5.10 Book Examples
|
#include <IntListModel.h>
Public Member Functions | |
| IntListModel (const QList< int > &list, QObject *pobj=0) | |
| QVariant | data (const QModelIndex &index, int nRole) const |
| bool | setData (const QModelIndex &index, const QVariant &value, int nRole) |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| QVariant | headerData (int nSection, Qt::Orientation orientation, int nRole=Qt::DisplayRole) const |
| Qt::ItemFlags | flags (const QModelIndex &index) const |
| bool | insertRows (int nRow, int nCount, const QModelIndex &parent=QModelIndex()) |
| bool | removeRows (int nRow, int nCount, const QModelIndex &parent=QModelIndex()) |
Definition at line 16 of file IntListModel.h.
| IntListModel::IntListModel | ( | const QList< int > & | list, |
| QObject * | pobj = 0 |
||
| ) |
Definition at line 15 of file IntListModel.cpp.
| QVariant IntListModel::data | ( | const QModelIndex & | index, |
| int | nRole | ||
| ) | const |
Definition at line 22 of file IntListModel.cpp.
| Qt::ItemFlags IntListModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 74 of file IntListModel.cpp.
| QVariant IntListModel::headerData | ( | int | nSection, |
| Qt::Orientation | orientation, | ||
| int | nRole = Qt::DisplayRole |
||
| ) | const |
Definition at line 61 of file IntListModel.cpp.
| bool IntListModel::insertRows | ( | int | nRow, |
| int | nCount, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) |
Definition at line 82 of file IntListModel.cpp.
| bool IntListModel::removeRows | ( | int | nRow, |
| int | nCount, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) |
Definition at line 101 of file IntListModel.cpp.
| int IntListModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 50 of file IntListModel.cpp.
| bool IntListModel::setData | ( | const QModelIndex & | index, |
| const QVariant & | value, | ||
| int | nRole | ||
| ) |
Definition at line 36 of file IntListModel.cpp.
1.8.14