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
8class QEvent;
9
10namespace simox::gui
11{
12
13 class FunctionalEventFilter : public QObject
14 {
15 public:
16 using Function = std::function<bool(QObject* obj, QEvent* event)>;
17
18
20
21
22 protected:
23 bool eventFilter(QObject* obj, QEvent* event) override;
24
26 };
27
28} // namespace simox::gui
std::function< bool(QObject *obj, QEvent *event)> Function
bool eventFilter(QObject *obj, QEvent *event) override