Commit dfde72e4 authored by Shawn Rutledge's avatar Shawn Rutledge Committed by The Qt Project
Browse files

Added QDebug support for QWindowSystemInterface::TouchPoint


Change-Id: Icfc606a49a7fd24fcd35b9c818642a03e044ed6c
Reviewed-by: default avatarFrederik Gladhorn <frederik.gladhorn@digia.com>
parent ffecaf85
No related merge requests found
Showing with 11 additions and 0 deletions
...@@ -647,6 +647,13 @@ void QWindowSystemInterface::handleContextMenuEvent(QWindow *w, bool mouseTrigge ...@@ -647,6 +647,13 @@ void QWindowSystemInterface::handleContextMenuEvent(QWindow *w, bool mouseTrigge
} }
#endif #endif
#ifndef QT_NO_DEBUG_STREAM
Q_GUI_EXPORT QDebug operator<<(QDebug dbg, const QWindowSystemInterface::TouchPoint &p) {
dbg.nospace() << "TouchPoint(" << p.id << " @" << p.normalPosition << " press " << p.pressure << " vel " << p.velocity << " state " << (int)p.state;
return dbg.space();
}
#endif
Q_GUI_EXPORT void qt_handleMouseEvent(QWindow *w, const QPointF & local, const QPointF & global, Qt::MouseButtons b, Qt::KeyboardModifiers mods = Qt::NoModifier) { Q_GUI_EXPORT void qt_handleMouseEvent(QWindow *w, const QPointF & local, const QPointF & global, Qt::MouseButtons b, Qt::KeyboardModifiers mods = Qt::NoModifier) {
QWindowSystemInterface::handleMouseEvent(w, local, global, b, mods); QWindowSystemInterface::handleMouseEvent(w, local, global, b, mods);
} }
......
...@@ -190,6 +190,10 @@ private: ...@@ -190,6 +190,10 @@ private:
static bool sendWindowSystemEventsImplementation(QEventLoop::ProcessEventsFlags flags); static bool sendWindowSystemEventsImplementation(QEventLoop::ProcessEventsFlags flags);
}; };
#ifndef QT_NO_DEBUG_STREAM
Q_GUI_EXPORT QDebug operator<<(QDebug dbg, const QWindowSystemInterface::TouchPoint &p);
#endif
QT_END_NAMESPACE QT_END_NAMESPACE
#endif // QWINDOWSYSTEMINTERFACE_H #endif // QWINDOWSYSTEMINTERFACE_H
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment