45 #ifndef SHORTCUTBUTTON_HH 46 #define SHORTCUTBUTTON_HH 48 #include <QPushButton> 60 Qt::KeyboardModifiers modifiers_;
63 Qt::KeyboardModifiers oldModifiers_;
74 void focusInEvent(QFocusEvent* event);
75 void focusOutEvent(QFocusEvent* event);
77 void mousePressEvent(QMouseEvent* event);
78 void mouseReleaseEvent(QMouseEvent* event);
88 #endif //SHORTCUTBUTTON_HH void showCurrentShortcut()
show the current shortcut
void keyReleaseEvent(QKeyEvent *event)
key release
void setCurrentShortcut(int _key, Qt::KeyboardModifiers _modifiers)
set the current shortcut
ShortcutButton(QWidget *_parent=0)
Constructor.
Qt::KeyboardModifiers modifiers()
get current modifiers
void keyPressEvent(QKeyEvent *event)
key press