/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once namespace Core { class EventFilter : public QObject { public: EventFilter( not_null parent, Fn)> filter); protected: bool eventFilter(QObject *watched, QEvent *event); private: Fn)> _filter; }; not_null InstallEventFilter( not_null object, Fn)> filter); } // namespace Core