|
| | ActionCollectionModel (QObject *parent, ActionCollection *collection=0, Mode mode=Mode(Icons|ToolTips)) |
| |
| virtual | ~ActionCollectionModel () |
| |
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| |
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| |
| virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
| |
| virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| |
| virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| |
| QModelIndex | indexForAction (Action *action) const |
| |
| QModelIndex | indexForCollection (ActionCollection *collection) const |
| |
| virtual bool | insertColumns (int column, int count, const QModelIndex &parent=QModelIndex()) |
| |
| virtual bool | insertRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
| |
| virtual QMimeData * | mimeData (const QModelIndexList &indexes) const |
| |
| virtual QStringList | mimeTypes () const |
| |
| virtual QModelIndex | parent (const QModelIndex &index) const |
| |
| virtual bool | removeColumns (int column, int count, const QModelIndex &parent=QModelIndex()) |
| |
| virtual bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
| |
| ActionCollection * | rootCollection () const |
| |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| |
| virtual bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| |
| virtual Qt::DropActions | supportedDropActions () const |
| |
The ActionCollectionModel class implements a QAbstractItemModel to provide a model for views of a ActionCollection instance that manages a collection of Action instances.
Important implementation detatils:
- An action can not have children.
- A collection can have both collections and actions as children.
- This model lists actions before collections.
- The internalPointer() of QModelIndex is used to hold a pointer to the parent collection.
Definition at line 46 of file model.h.