19 #ifndef MOUSE_TOUCH_ADAPTOR_H
20 #define MOUSE_TOUCH_ADAPTOR_H
22 #include <QtCore/QAbstractNativeEventFilter>
30 class MouseTouchAdaptor :
public QAbstractNativeEventFilter {
36 virtual bool nativeEventFilter(
const QByteArray & eventType,
void *message,
long *result);
40 bool handleButtonPress(xcb_button_press_event_t *pressEvent);
41 bool handleButtonRelease(xcb_button_release_event_t *releaseEvent);
42 bool handleMotionNotify(xcb_motion_notify_event_t *event);
43 QWindow *findQWindowWithXWindowID(WId windowId);
45 QTouchDevice *m_touchDevice;
46 bool m_leftButtonIsPressed;
49 #endif // MOUSE_TOUCH_ADAPTOR_H