18 lines
405 B
C++
18 lines
405 B
C++
#ifndef XCB_EVENT_FILTER_H
|
|
#define XCB_EVENT_FILTER_H
|
|
|
|
#include <QObject>
|
|
#include <QAbstractNativeEventFilter>
|
|
|
|
class XcbEventFilter : public QAbstractNativeEventFilter
|
|
{
|
|
public:
|
|
XcbEventFilter(QObject *favicon);
|
|
~XcbEventFilter() override;
|
|
bool nativeEventFilter(const QByteArray &eventType, void *message, long *) override;
|
|
private:
|
|
QObject *m_favicon;
|
|
};
|
|
|
|
#endif // XCB_EVENT_FILTER_H
|