#include <MemoryX/gui-plugins/SceneEditor/gui/ShortcutTableModel.h>
|
QVariant | actionName (const QModelIndex &index, int role) const |
| Returns the Name of the Action of the given Row. More...
|
|
int | columnCount (const QModelIndex &parent) const override |
| Returns the number of given columns (standard = 2). More...
|
|
QVariant | data (const QModelIndex &index, int role) const override |
| Returns the value of a given Position in the model. More...
|
|
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
| Returns the header of a given Section by orientation. More...
|
|
int | rowCount (const QModelIndex &parent) const override |
| Returns the number of given rows. More...
|
|
void | setShortcutHashTable (QHash< QString, QKeySequence > Shortcuts) |
| Sets a predefined Shortcuts-Hash as new Hash of this ShortcutTableModel. More...
|
|
| ShortcutTableModel (QHash< QString, QKeySequence > Shortcuts, QObject *parent=0) |
| A constructor. More...
|
|
| ShortcutTableModel (QObject *parent=0) |
| A constructor. More...
|
|
Definition at line 32 of file ShortcutTableModel.h.
◆ ShortcutTableModel() [1/2]
◆ ShortcutTableModel() [2/2]
A constructor.
Creates a new Instance of ShortcutTableModel with a predefined Shortcuts-Hash and a given parent.
- Parameters
-
Shortcuts | QHash of predefined Shortcuts-Hash |
parent | Parent QObject |
Definition at line 31 of file ShortcutTableModel.cpp.
◆ actionName()
QVariant actionName |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
Returns the Name of the Action of the given Row.
- Parameters
-
index | Position in Model to be returned |
role | Role that is used to get data |
- Returns
- Name of the action
Definition at line 105 of file ShortcutTableModel.cpp.
◆ columnCount()
int columnCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
Returns the number of given columns (standard = 2).
- Parameters
-
- Returns
- number of columns
Definition at line 48 of file ShortcutTableModel.cpp.
◆ data()
QVariant data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
Returns the value of a given Position in the model.
- Parameters
-
index | Position in Model to be returned |
role | Role that is used to get data |
- Returns
- Value of given Position
Definition at line 53 of file ShortcutTableModel.cpp.
◆ headerData()
QVariant headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
|
override |
Returns the header of a given Section by orientation.
- Parameters
-
section | Section in Header to be returned |
orientation | Orientation to find given section |
role | Role that is used to get data |
- Returns
- Headervalue of given Section
Definition at line 80 of file ShortcutTableModel.cpp.
◆ rowCount()
int rowCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
Returns the number of given rows.
- Parameters
-
- Returns
- number of rows
Definition at line 43 of file ShortcutTableModel.cpp.
◆ setShortcutHashTable()
void setShortcutHashTable |
( |
QHash< QString, QKeySequence > |
Shortcuts | ) |
|
The documentation for this class was generated from the following files: