The central button in a SensorPushButtonGroup.
More...
#include <joysensorpushbutton.h>
The central button in a SensorPushButtonGroup.
◆ JoySensorPushButton()
JoySensorPushButton::JoySensorPushButton |
( |
JoySensor * |
sensor, |
|
|
bool |
displayNames, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
◆ disableFlashes
void JoySensorPushButton::disableFlashes |
( |
| ) |
|
|
overrideslot |
Disables highlight when the sensor axis is moved.
◆ enableFlashes
void JoySensorPushButton::enableFlashes |
( |
| ) |
|
|
overrideslot |
Enables highlight when the sensor axis is moved.
◆ generateLabel()
QString JoySensorPushButton::generateLabel |
( |
| ) |
|
|
overrideprotectedvirtual |
Generate the string that will be displayed on the button.
- Returns
- Display string
Implements FlashButtonWidget.
◆ getSensor()
JoySensor * JoySensorPushButton::getSensor |
( |
| ) |
const |
◆ showContextMenu
void JoySensorPushButton::showContextMenu |
( |
const QPoint & |
point | ) |
|
|
privateslot |
Shows sensor context menu.
◆ tryFlash()
void JoySensorPushButton::tryFlash |
( |
| ) |
|
Highlights the button when sensor is not centered.
◆ m_sensor
The documentation for this class was generated from the following files: