FunctionalEventFilter.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <functional>
4
5
#include <QObject>
6
#include <qobject.h>
7
8
class
QEvent;
9
10
namespace
simox::gui
11
{
12
13
class
FunctionalEventFilter
:
public
QObject
14
{
15
public
:
16
using
Function
= std::function<bool(QObject* obj, QEvent* event)>;
17
18
19
FunctionalEventFilter
(
Function
&&
function
);
20
21
22
protected
:
23
bool
eventFilter
(QObject* obj, QEvent* event)
override
;
24
25
Function
function
;
26
};
27
28
}
// namespace simox::gui
simox::gui::FunctionalEventFilter::FunctionalEventFilter
FunctionalEventFilter(Function &&function)
Definition:
FunctionalEventFilter.cpp:8
simox::gui::FunctionalEventFilter
Definition:
FunctionalEventFilter.h:13
simox::gui::FunctionalEventFilter::eventFilter
bool eventFilter(QObject *obj, QEvent *event) override
Definition:
FunctionalEventFilter.cpp:13
simox::gui
Definition:
FunctionalEventFilter.cpp:5
simox::gui::FunctionalEventFilter::Function
std::function< bool(QObject *obj, QEvent *event)> Function
Definition:
FunctionalEventFilter.h:16
armarx
navigation
gui-plugins
LocationGraphEditor
FunctionalEventFilter.h
Generated on Sat Mar 29 2025 09:17:35 for armarx_documentation by
1.8.17