Public Types | Public Member Functions | List of all members
pqProxyActionListModel Class Reference

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...
 

Detailed Description

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.

Member Enumeration Documentation

◆ Role

Enumerator
DocumentationRole 
ProxyEnabledRole 
RequirementRole 
ActionRole 
GroupRole 
NameRole 

Definition at line 34 of file pqProxyActionListModel.h.

Constructor & Destructor Documentation

◆ pqProxyActionListModel()

pqProxyActionListModel::pqProxyActionListModel ( const QList< QAction *> &  proxyActions,
QObject *  parent = nullptr 
)

◆ ~pqProxyActionListModel()

pqProxyActionListModel::~pqProxyActionListModel ( )
override

Member Function Documentation

◆ rowCount()

int pqProxyActionListModel::rowCount ( const QModelIndex &  parent) const
override

Reimplements Superclass API to manage items.

◆ data()

QVariant pqProxyActionListModel::data ( const QModelIndex &  index,
int  role 
) const
override

Reimplements Superclass API to manage items.

◆ headerData()

QVariant pqProxyActionListModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

Reimplements Superclass API to manage items.


The documentation for this class was generated from the following file: