#include <crightclickenabler.h>
Inherits QObject.
|
bool | eventFilter (QObject *watched, QEvent *event) override |
|
Definition at line 27 of file crightclickenabler.h.
◆ CRightClickEnabler()
CRightClickEnabler::CRightClickEnabler |
( |
QAbstractButton * |
button | ) |
|
Definition at line 10 of file crightclickenabler.cpp.
10 : QObject(button),
_button(button) {
11 button->installEventFilter(
this);
QAbstractButton * _button
◆ eventFilter()
bool CRightClickEnabler::eventFilter |
( |
QObject * |
watched, |
|
|
QEvent * |
event |
|
) |
| |
|
inlineoverrideprotected |
Definition at line 36 of file crightclickenabler.h.
40 if (event->type() == QEvent::MouseButtonPress)
42 auto mouseEvent = (QMouseEvent*) event;
44 if (mouseEvent->button() == Qt::RightButton) {
void rightClick(const QPoint &)
◆ rightClick
void CRightClickEnabler::rightClick |
( |
const QPoint & |
| ) |
|
|
signal |
◆ _button
QAbstractButton* CRightClickEnabler::_button |
|
private |
The documentation for this class was generated from the following files: