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