On touch events the mouse cursor gets hidden, on next mouse event the
mouse cursor is shown again. This IMHO significantly improves the system
interaction if touch is the primary user interface.
Actually nowadays I consider adding all the spies and filters to input.cpp a mistake. I find it very cumbersome to read this file and it makes it impossible to unit test the filters (some could be unit tested instead of only integration testing).
Looks good to me. (Please keep in mind that my decision is totally based on the provided test, I didn't test this patch on a physical device)
This file is part of the KDE project.
I've been wondering for a long time whether this statement is correct. (KDE is no longer a project, it's a community)