summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-07-30 13:44:57 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-07-30 13:57:44 (GMT)
commit5e966d96419fb68ac1f9528e72f1083b32eecdbb (patch)
treecaa62ecf31ab69698ba91ac053a04cae1d34ebbe
parent20b6e316285efc8d8d46fee2dec13364187a64a9 (diff)
downloadQt-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.cpp4
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);
}
/*!