diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-07-30 13:44:57 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-07-30 13:57:44 (GMT) |
commit | 5e966d96419fb68ac1f9528e72f1083b32eecdbb (patch) | |
tree | caa62ecf31ab69698ba91ac053a04cae1d34ebbe | |
parent | 20b6e316285efc8d8d46fee2dec13364187a64a9 (diff) | |
download | Qt-5e966d96419fb68ac1f9528e72f1083b32eecdbb.zip Qt-5e966d96419fb68ac1f9528e72f1083b32eecdbb.tar.gz Qt-5e966d96419fb68ac1f9528e72f1083b32eecdbb.tar.bz2 |
Gestures: fixed install event filter bug
made sure that we set the filter on the correct widget
RevBy: denis
-rw-r--r-- | src/gui/kernel/qgesture.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qgesture.cpp b/src/gui/kernel/qgesture.cpp index d53b419..1f98013 100644 --- a/src/gui/kernel/qgesture.cpp +++ b/src/gui/kernel/qgesture.cpp @@ -153,7 +153,7 @@ QGesture::QGesture(QObject *parent) : QObject(*new QGesturePrivate, parent) { if (parent) - installEventFilter(parent); + parent->installEventFilter(this); } /*! \internal @@ -162,7 +162,7 @@ QGesture::QGesture(QGesturePrivate &dd, QObject *parent) : QObject(dd, parent) { if (parent) - installEventFilter(parent); + parent->installEventFilter(this); } /*! |