[qtdeclarative] Fix mouse event filtering regression introduced by 42284e3f