![]() |
API Documentation
|
Allows the user to assign a keystroke to an action by displaying a button with the current keystroke assignment that when clicked, records a new keyboard assignment. More...
#include <KeystrokeWidget.h>
Public Member Functions | |
| bool | event (QEvent *event) override |
| KeystrokeWidget (KeyControllerBase *controller, QWidget *parent=nullptr) | |
| KeystrokeWidget (QWidget *parent=nullptr) | |
| void | resetToDefaults () |
| void | setController (KeyControllerBase *controller) |
| void | setShowGrabVolumeKeys (bool show) |
Public Member Functions inherited from KeyControllerBase | |
Protected Member Functions | |
| void | cleanup () |
| bool | processKeyEvent (const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) override |
| void | setup () |
| void | setup (BasicKeyController *key_controller) |
| void | setup (KeyController *key_controller) |
Protected Attributes | |
| KeyControllerBase * | m_controller = nullptr |
| Button * | m_current_button = nullptr |
| String | m_current_id |
| bool | m_is_init = false |
| QGridLayout * | m_layout = nullptr |
| QCustomScrollArea * | m_scroll_area = nullptr |
| QBoxLayout * | m_scroll_area_layout = nullptr |
| bool | m_show_grab_volume_keys = false |
Allows the user to assign a keystroke to an action by displaying a button with the current keystroke assignment that when clicked, records a new keyboard assignment.
| KeystrokeWidget | ( | QWidget * | parent = nullptr | ) |
| KeystrokeWidget | ( | KeyControllerBase * | controller, |
| QWidget * | parent = nullptr ) |
|
protected |
|
override |
|
overrideprotectedvirtual |
Implements KeyControllerBase.
| void resetToDefaults | ( | ) |
| void setController | ( | KeyControllerBase * | controller | ) |
| void setShowGrabVolumeKeys | ( | bool | show | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |