19 #ifndef SDRGUI_GUI_CRIGHTCLICKENABLER_H_ 20 #define SDRGUI_GUI_CRIGHTCLICKENABLER_H_ 22 #include <QAbstractButton> 23 #include <QMouseEvent> 33 void rightClick(
const QPoint&);
36 inline bool eventFilter(QObject *watched, QEvent *event)
override 40 if (event->type() == QEvent::MouseButtonPress)
42 auto mouseEvent = (QMouseEvent*) event;
44 if (mouseEvent->button() == Qt::RightButton) {
45 emit rightClick(mouseEvent->globalPos());
bool eventFilter(QObject *watched, QEvent *event) override
QAbstractButton * _button