20 #ifndef SHORTCUTLINEEDIT_H 21 #define SHORTCUTLINEEDIT_H 24 #include <QKeySequence> 42 QKeySequence getKeySequence();
58 void contentsChanged();
61 void keyPressEvent(QKeyEvent *e);
62 void focusInEvent(QFocusEvent *e);
63 void focusOutEvent(QFocusEvent *e);
67 static int getModifiers(Qt::KeyboardModifiers state,
const QString &text);
73 #endif // SHORTCUTLINEEDIT_H void focusChanged(bool focus)
Needed for enabling/disabling buttons in ShortcutsDialog.
Specialised GUI control for entering keyboard shortcut combinations.
void backspace()
Remove the last key from the key sequence.
void clear()
Clear contents and stored keys.
void setContents(QKeySequence ks)
Emits contentsChanged() if the new sequence is not the same.