summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformgraphicsbuffer.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-07-01 14:37:29 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-07-03 07:39:14 +0200
commit3fb31819fd4a209873ef671494cba8bd95dae73a (patch)
treea61b064804d5b2d7010b83cb17f31983885e8a38 /src/gui/kernel/qplatformgraphicsbuffer.cpp
parent39d99c714bb87bd39e92d85fb1f46c52eb9f8d33 (diff)
Windows QPA: Refactor touch device creation
There was duplicated code in QWindowsMouseHandler::ensureTouchDevice() and QWindowsPointerHandler::ensureTouchDevice() which caused deprecation warnings since the setters of QInputDevice were deprecated. Join the 2 functions into a single creation function and add simple getters and setters. Fix deprecation warnings: qwindowscontext.cpp:357:108: warning: 'void QPointingDevice::setCapabilities(QInputDevice::Capabilities)' is deprecated: Use the constructor qwindowsmousehandler.cpp:132:97: warning: 'void QPointingDevice::setType(QInputDevice::DeviceType)' is deprecated: Use the constructor qwindowsmousehandler.cpp:136:41: warning: 'void QPointingDevice::setCapabilities(QInputDevice::Capabilities)' is deprecated: Use the constructor qwindowsmousehandler.cpp:137:49: warning: 'void QPointingDevice::setMaximumTouchPoints(int)' is deprecated: Use the constructor Change-Id: Iab5385e84d600e45b60f38225175f25ef043c3eb Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/gui/kernel/qplatformgraphicsbuffer.cpp')
0 files changed, 0 insertions, 0 deletions