MCPcopy Create free account
hub / github.com/AntiMicroX/antimicrox / JoySensorButtonPushButton

Method JoySensorButtonPushButton

src/joysensorbuttonpushbutton.cpp:28–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include <QWidget>
27
28JoySensorButtonPushButton::JoySensorButtonPushButton(JoySensorButton *button, bool displayNames, QWidget *parent)
29 : FlashButtonWidget(displayNames, parent)
30 , m_button(button)
31{
32 refreshLabel();
33 enableFlashes();
34
35 tryFlash();
36
37 setContextMenuPolicy(Qt::CustomContextMenu);
38 connect(this, &JoySensorButtonPushButton::customContextMenuRequested, this, &JoySensorButtonPushButton::showContextMenu);
39 connect(m_button, &JoySensorButton::propertyUpdated, this, &JoySensorButtonPushButton::refreshLabel);
40 connect(m_button, &JoySensorButton::activeZoneChanged, this, &JoySensorButtonPushButton::refreshLabel);
41}
42
43/**
44 * @brief Get the JoySensorButton for this mapping

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected