#include <QtxShortcutEdit.h>
|
static QString | parseEvent (QKeyEvent *) |
| Gets the key sequence from keys that were pressed. More...
|
|
static bool | isValidKey (int) |
| Check if the key event contains a 'valid' key. More...
|
|
◆ QtxShortcutEdit()
QtxShortcutEdit::QtxShortcutEdit |
( |
QWidget * |
parent = 0 | ) |
|
◆ ~QtxShortcutEdit()
QtxShortcutEdit::~QtxShortcutEdit |
( |
| ) |
|
|
virtual |
◆ eventFilter()
bool QtxShortcutEdit::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
event |
|
) |
| |
|
protectedvirtual |
◆ initialize()
void QtxShortcutEdit::initialize |
( |
| ) |
|
|
private |
◆ isValidKey()
bool QtxShortcutEdit::isValidKey |
( |
int |
aKey | ) |
|
|
static |
Check if the key event contains a 'valid' key.
- Parameters
-
- Returns
true
if the key is 'valid'
◆ onCliked
void QtxShortcutEdit::onCliked |
( |
| ) |
|
|
privateslot |
Called when "Clear" button is clicked.
References myShortcut.
◆ onEditingFinished
void QtxShortcutEdit::onEditingFinished |
( |
| ) |
|
|
privateslot |
◆ parseEvent()
QString QtxShortcutEdit::parseEvent |
( |
QKeyEvent * |
e | ) |
|
|
static |
Gets the key sequence from keys that were pressed.
- Parameters
-
- Returns
- a string representation of the key sequence
References isValidKey().
◆ setShortcut()
void QtxShortcutEdit::setShortcut |
( |
const QKeySequence & |
seq | ) |
|
◆ shortcut()
QKeySequence QtxShortcutEdit::shortcut |
( |
| ) |
|
Gets custom shortcut.
- Returns
- a key sequence describes a combination of keys
- See also
- setShortcut()
References myShortcut.
◆ myPrevShortcutText
QString QtxShortcutEdit::myPrevShortcutText |
|
private |
◆ myShortcut
The documentation for this class was generated from the following files: