Lisens for press-del-key events.
Definition at line 46 of file CustomEventFilters.h.
|
bool | eventFilter (QObject *dist, QEvent *event) override |
|
◆ DeleteEventFilter()
DeleteEventFilter::DeleteEventFilter |
( |
QObject * |
parent = nullptr | ) |
|
|
inline |
◆ eventFilter()
bool DeleteEventFilter::eventFilter |
( |
QObject * |
dist, |
|
|
QEvent * |
event |
|
) |
| |
|
overrideprotected |
Definition at line 80 of file CustomEventFilters.cpp.
83 if (event->type() == QEvent::KeyPress) {
84 auto* keyEvent =
dynamic_cast<QKeyEvent*
>(event);
85 if (keyEvent->key() == Qt::Key_Delete)
88 return QObject::eventFilter(dist, event);
References removeItem().
◆ removeItem
void DeleteEventFilter::removeItem |
( |
| ) |
|
|
signal |
The documentation for this class was generated from the following files: