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

Hotkey list model. More...

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

Public Types

enum  ItemRole { ActionHotkeyRole = Qt::UserRole }
 Item role.
 

Public Member Functions

 CActionHotkeyListModel (QObject *parent=nullptr)
 Constructor.
 
virtual ~CActionHotkeyListModel ()
 Destructor.
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
bool setData (const QModelIndex &index, const QVariant &var, int role)
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const
 
bool insertRows (int position, int rows, const QModelIndex &index)
 
bool removeRows (int position, int rows, const QModelIndex &index)
 
void clear ()
 Clear model.
 

Detailed Description

Hotkey list model.

Definition at line 22 of file actionhotkeylistmodel.h.

Member Function Documentation

◆ columnCount()

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

Parameters
parentparent *

Definition at line 23 of file actionhotkeylistmodel.cpp.

◆ data()

QVariant swift::gui::models::CActionHotkeyListModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Definition at line 25 of file actionhotkeylistmodel.cpp.

◆ headerData()

QVariant swift::gui::models::CActionHotkeyListModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const

Definition at line 54 of file actionhotkeylistmodel.cpp.

◆ insertRows()

bool swift::gui::models::CActionHotkeyListModel::insertRows ( int  position,
int  rows,
const QModelIndex &  index 
)

Definition at line 71 of file actionhotkeylistmodel.cpp.

◆ removeRows()

bool swift::gui::models::CActionHotkeyListModel::removeRows ( int  position,
int  rows,
const QModelIndex &  index 
)

Definition at line 82 of file actionhotkeylistmodel.cpp.

◆ rowCount()

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

Parameters
parentparent *

Definition at line 21 of file actionhotkeylistmodel.cpp.

◆ setData()

bool swift::gui::models::CActionHotkeyListModel::setData ( const QModelIndex &  index,
const QVariant &  var,
int  role 
)

Definition at line 99 of file actionhotkeylistmodel.cpp.


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