From 426740ba1dec2e09233a9c719533b979e8957b53 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Fri, 4 Aug 2023 17:18:34 +0200 Subject: [PATCH] QMutableEventPoint::update(): update the touchpoint uniqueId too Most touch events don't have uniqueIds, but it happens with TUIO fiducial objects. Fixes: QTBUG-115758 Change-Id: Ibacce255898ce63090bc5b888c12242838603dd5 Reviewed-by: Axel Spoerl (cherry picked from commit 17f61ddc63291914cbd4402f8398a6e9709f7b37) Reviewed-by: Qt Cherry-pick Bot --- src/gui/kernel/qeventpoint.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/kernel/qeventpoint.cpp b/src/gui/kernel/qeventpoint.cpp index bbb0baee799..66d4f44ea0b 100644 --- a/src/gui/kernel/qeventpoint.cpp +++ b/src/gui/kernel/qeventpoint.cpp @@ -536,6 +536,7 @@ void QMutableEventPoint::update(const QEventPoint &other, QEventPoint &target) setEllipseDiameters(target, other.ellipseDiameters()); setRotation(target, other.rotation()); setVelocity(target, other.velocity()); + setUniqueId(target, other.uniqueId()); // for TUIO } /*! \internal