Check touch device type on TouchEvents
authorromibi <romibi@bluewin.ch>
Sun, 3 Jul 2016 13:36:19 +0000 (15:36 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 28 Feb 2018 22:07:21 +0000 (23:07 +0100)
commit343c271126129ea974593f64c0ab4f44c6da26dc
treefaef43c805684f58e292b339f6bdf88c2fc2ea0d
parent4a411a3abb247db2b8ebac1d9c90d3f35562cec5
Check touch device type on TouchEvents

Check the touch device type to prevent touch pads from being handled as touch
screens.

No check required on TouchUpdate and TouchEnd, because if TouchBegin is not
accepted (return true) no following TouchUpdate/End Events are received.

(cherry picked from commit 127226e3619358013ef821acdf9e80f615370b12)
src/qtui/chatview.cpp
src/uisupport/treeviewtouch.cpp