|
mkRPG
|
The OrderTreeItemModel class presents the orders of an object using the QAbstractItemModel interface. More...
#include <attrtreeitemmodel.h>
Public Member Functions | |
| OrderTreeItemModel (QObject *parent=0, bool readOnly=false) | |
| void | setObject (GameObject *o) |
| int | columnCount (const QModelIndex &parent) const |
| int | rowCount (const QModelIndex &parent) const |
| Qt::ItemFlags | flags (const QModelIndex &index) const |
| QVariant | data (const QModelIndex &index, int role) const |
| QModelIndex | index (int row, int column, const QModelIndex &parent) const |
| QModelIndex | parent (const QModelIndex &child) const |
| QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
| bool | setData (const QModelIndex &index, const QVariant &value, int role) |
| void | addOrder (const QString &name) |
| void | sortAttr (const QModelIndex &par) |
| QModelIndex | findOrder (const QString &order, const QModelIndex &root=QModelIndex()) |
The OrderTreeItemModel class presents the orders of an object using the QAbstractItemModel interface.
1.7.6.1