removed appbase directory

This commit is contained in:
fourtf
2019-10-07 15:46:08 +02:00
parent 9f52564b9c
commit b1cbf09427
52 changed files with 126 additions and 286 deletions
+24
View File
@@ -0,0 +1,24 @@
#pragma once
#include <QEvent>
#include <QObject>
#include <functional>
namespace chatterino {
class FunctionEventFilter : public QObject
{
Q_OBJECT
public:
FunctionEventFilter(QObject *parent,
std::function<bool(QObject *, QEvent *)> function);
protected:
bool eventFilter(QObject *watched, QEvent *event) override;
private:
std::function<bool(QObject *, QEvent *)> function_;
};
} // namespace chatterino