swift
Public Types | Public Member Functions | List of all members
swift::gui::models::CActionModel Class Reference

Action tree model, used with hotkey actions. More...

Inheritance diagram for swift::gui::models::CActionModel:
[legend]

Public Types

enum  ItemRole { ActionRole = Qt::UserRole }
 User roles.
 

Public Member Functions

 CActionModel (QObject *parent=nullptr)
 Constructor.
 
virtual ~CActionModel ()
 Destructor.
 
QVariant data (const QModelIndex &index, int role) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
QModelIndex parent (const QModelIndex &index) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 

Detailed Description

Action tree model, used with hotkey actions.

Remarks
data from CInputManager

Definition at line 27 of file actionmodel.h.

Member Function Documentation

◆ columnCount()

int swift::gui::models::CActionModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 28 of file actionmodel.cpp.

◆ data()

QVariant swift::gui::models::CActionModel::data ( const QModelIndex &  index,
int  role 
) const

Definition at line 34 of file actionmodel.cpp.

◆ flags()

Qt::ItemFlags swift::gui::models::CActionModel::flags ( const QModelIndex &  index) const

Definition at line 48 of file actionmodel.cpp.

◆ index()

QModelIndex swift::gui::models::CActionModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const

Definition at line 57 of file actionmodel.cpp.

◆ parent()

QModelIndex swift::gui::models::CActionModel::parent ( const QModelIndex &  index) const

Definition at line 68 of file actionmodel.cpp.

◆ rowCount()

int swift::gui::models::CActionModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 80 of file actionmodel.cpp.


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