remove install/removeEventFilter from QRollEffect

This class doesn't have an eventFilter method.

Change-Id: Ibd7b3b5b954dd2467c9b4dadd85d3613964d9f7c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com>
This commit is contained in:
Joerg Bornemann 2012-08-15 12:39:44 +02:00 committed by Qt by Nokia
parent c9406bcffe
commit 609b0a9c2e

View File

@ -474,8 +474,6 @@ void QRollEffect::run(int time)
show();
setEnabled(false);
qApp->installEventFilter(this);
showWidget = true;
done = false;
anim.start(1);
@ -535,7 +533,6 @@ void QRollEffect::scroll()
}
if (done || !widget) {
anim.stop();
qApp->removeEventFilter(this);
if (widget) {
if (!showWidget) {
#ifdef Q_OS_WIN