made appbase compile standalone

This commit is contained in:
fourtf
2018-11-25 15:02:48 +01:00
parent a9ca33f431
commit 0b94d0f763
14 changed files with 32 additions and 525 deletions
-24
View File
@@ -1,24 +0,0 @@
#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