A combo box that displays a list of VuoKeys and reacts to keypresses by selecting the corresponding VuoKey.
Definition at line 20 of file VuoKeyComboBox.hh.
Public Slots | |
void | keyPressEvent (QKeyEvent *e) |
Captures all keypresses, and uses them to change the VuoKey selection. More... | |
Public Member Functions | |
VuoKeyComboBox (QWidget *parent) | |
Creates a combo box populated with a list of all VuoKey values. More... | |
void | setCurrentKey (VuoKey key) |
Selects the given VuoKey in the combo box. More... | |
VuoKey | getCurrentKey (void) |
Returns the currently selected VuoKey. More... | |
bool | eventFilter (QObject *object, QEvent *e) |
Captures all keypresses that would normally go to the child widget (list popup), and uses them to change the VuoKey selection. More... | |
Public Member Functions inherited from VuoComboBox | |
VuoComboBox (QWidget *parent=Q_NULLPTR) | |
Creates a new combo box. More... | |
void | setItemEnabled (int index, bool enabled) |
Enables or disables an item in a combo box menu. More... | |
VuoKeyComboBox::VuoKeyComboBox | ( | QWidget * | parent | ) |
Creates a combo box populated with a list of all VuoKey values.
Definition at line 93 of file VuoKeyComboBox.cc.
bool VuoKeyComboBox::eventFilter | ( | QObject * | object, |
QEvent * | e | ||
) |
Captures all keypresses that would normally go to the child widget (list popup), and uses them to change the VuoKey selection.
Definition at line 154 of file VuoKeyComboBox.cc.
VuoKey VuoKeyComboBox::getCurrentKey | ( | void | ) |
Returns the currently selected VuoKey.
Definition at line 129 of file VuoKeyComboBox.cc.
|
slot |
Captures all keypresses, and uses them to change the VuoKey selection.
Definition at line 138 of file VuoKeyComboBox.cc.
void VuoKeyComboBox::setCurrentKey | ( | VuoKey | key | ) |
Selects the given VuoKey in the combo box.
Definition at line 119 of file VuoKeyComboBox.cc.