Developer Documentation
ShortcutButton Class Reference
Inheritance diagram for ShortcutButton:

Signals

void keyChanged ()
 

Public Member Functions

 ShortcutButton (QWidget *_parent=0)
 Constructor.
 
void setCurrentShortcut (int _key, Qt::KeyboardModifiers _modifiers)
 set the current shortcut
 
int key ()
 get current key
 
Qt::KeyboardModifiers modifiers ()
 get current modifiers
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event)
 key press
 
void keyReleaseEvent (QKeyEvent *event)
 key release
 
void focusInEvent (QFocusEvent *event)
 
void focusOutEvent (QFocusEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 

Private Member Functions

void showCurrentShortcut ()
 show the current shortcut
 

Private Attributes

int key_
 
Qt::KeyboardModifiers modifiers_
 
int oldKey_
 
Qt::KeyboardModifiers oldModifiers_
 
bool checked_
 
bool firstPress_
 

Detailed Description

Definition at line 57 of file ShortcutButton.hh.


The documentation for this class was generated from the following files: