51 #ifndef SHORTCUTBUTTON_HH
52 #define SHORTCUTBUTTON_HH
54 #include <QPushButton>
66 Qt::KeyboardModifiers modifiers_;
69 Qt::KeyboardModifiers oldModifiers_;
80 void focusInEvent(QFocusEvent* event);
81 void focusOutEvent(QFocusEvent* event);
83 void mousePressEvent(QMouseEvent* event);
84 void mouseReleaseEvent(QMouseEvent* event);
94 #endif //SHORTCUTBUTTON_HH
void keyReleaseEvent(QKeyEvent *event)
key release
Qt::KeyboardModifiers modifiers()
get current modifiers
void setCurrentShortcut(int _key, Qt::KeyboardModifiers _modifiers)
set the current shortcut
void showCurrentShortcut()
show the current shortcut
ShortcutButton(QWidget *_parent=0)
Constructor.
void keyPressEvent(QKeyEvent *event)
key press