A model to handle a list of proxy action. More...
#include <pqProxyActionListModel.h>
Inherits QAbstractListModel.
Public Types | |
enum | Role { DocumentationRole = Qt::UserRole + 1, ProxyEnabledRole, RequirementRole, ActionRole, GroupRole, NameRole } |
Public Member Functions | |
pqProxyActionListModel (const QList< QAction *> &proxyActions, QObject *parent=nullptr) | |
~pqProxyActionListModel () override | |
int | rowCount (const QModelIndex &parent) const override |
Reimplements Superclass API to manage items. More... | |
QVariant | data (const QModelIndex &index, int role) const override |
Reimplements Superclass API to manage items. More... | |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
Reimplements Superclass API to manage items. More... | |
A model to handle a list of proxy action.
Reimplements QAbstractListModel to provide a qt model for list of proxy action. The different proxy informations can be accessed from dedicated item UserRole.
Typically, Tooltip uses the proxy ShortHelp, and disabled actions are displayed with a dedicated palette.
Note: This is a private class and is not available outside of ParaView.
Definition at line 25 of file pqProxyActionListModel.h.
Enumerator | |
---|---|
DocumentationRole | |
ProxyEnabledRole | |
RequirementRole | |
ActionRole | |
GroupRole | |
NameRole |
Definition at line 34 of file pqProxyActionListModel.h.
pqProxyActionListModel::pqProxyActionListModel | ( | const QList< QAction *> & | proxyActions, |
QObject * | parent = nullptr |
||
) |
|
override |
Reimplements Superclass API to manage items.
Reimplements Superclass API to manage items.
|
override |
Reimplements Superclass API to manage items.