#include <QtxShortcutEdit.h>

Public Member Functions | |
| QtxShortcutEdit (QWidget *=0) | |
| Constructor. | |
| virtual | ~QtxShortcutEdit () |
| Destructor. | |
| void | setShortcut (const QKeySequence &) |
| Sets custom shortcut. | |
| QKeySequence | shortcut () |
| Gets custom shortcut. | |
Static Public Member Functions | |
| static QString | parseEvent (QKeyEvent *) |
| Gets the key sequence from keys that were pressed. | |
| static bool | isValidKey (int) |
| Check if the key event contains a 'valid' key. | |
Protected Member Functions | |
| virtual bool | eventFilter (QObject *, QEvent *) |
| Custom event filter. | |
Private Slots | |
| void | onCliked () |
| Called when "Clear" button is clicked. | |
| void | onEditingFinished () |
| Called when myShortcut loses focus. | |
Private Member Functions | |
| void | initialize () |
Private Attributes | |
| QLineEdit * | myShortcut |
| QString | myPrevShortcutText |
| QtxShortcutEdit::QtxShortcutEdit | ( | QWidget * | parent = 0 | ) |
| parent | parent widget |
References initialize(), and myShortcut.
| QtxShortcutEdit::~QtxShortcutEdit | ( | ) | [virtual] |
| void QtxShortcutEdit::setShortcut | ( | const QKeySequence & | seq | ) |
| seq | a key sequence describes a combination of keys |
References myPrevShortcutText, and myShortcut.
| QKeySequence QtxShortcutEdit::shortcut | ( | ) |
References myShortcut.
| QString QtxShortcutEdit::parseEvent | ( | QKeyEvent * | e | ) | [static] |
| e | a key event |
References isValidKey().
| bool QtxShortcutEdit::isValidKey | ( | int | aKey | ) | [static] |
| aKey | the code of the key |
true if the key is 'valid' | void QtxShortcutEdit::onCliked | ( | ) | [private, slot] |
References myShortcut.
| void QtxShortcutEdit::onEditingFinished | ( | ) | [private, slot] |
References myPrevShortcutText, and myShortcut.
| obj | event receiver object |
| event | event |
true if further event processing should be stopped References myPrevShortcutText, myShortcut, onCliked(), and parseEvent().
| void QtxShortcutEdit::initialize | ( | ) | [private] |
References delete_icon, myPrevShortcutText, myShortcut, onCliked(), and onEditingFinished().
QLineEdit* QtxShortcutEdit.myShortcut [private] |
QString QtxShortcutEdit.myPrevShortcutText [private] |