Fixed broken logic in evdev input plugins.
authorSamuel Rødal <samuel.rodal@nokia.com>
Fri, 13 Apr 2012 18:31:41 +0000 (20:31 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sat, 14 Apr 2012 23:41:45 +0000 (01:41 +0200)
commitd357b74493c737a51f6a81dcaf30b4433ce22af0
tree033b7cf4ecd548df33e98c6ae17f537bb3faa381
parenta9a1bf3359cf25482eba300097cad7b81a237b04
Fixed broken logic in evdev input plugins.

If we do multiple reads we need to accumulate the total amount of bytes
read, instead of just taking the last read amount into account.

Change-Id: Iaa9b90c269f3ed9d09dae67452ca816d9db6217f
Reviewed-by: Johannes Zellner <johannes.zellner@nokia.com>
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
src/plugins/generic/evdevkeyboard/qevdevkeyboardhandler.cpp
src/plugins/generic/evdevmouse/qevdevmousehandler.cpp
src/plugins/generic/evdevtouch/qevdevtouch.cpp