summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_qpa.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-08-18 12:22:09 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-08-18 12:22:09 (GMT)
commit74d519f87e804b624ac76337fe2905d512d363fc (patch)
tree74af6d52f0d3fb7867f4bb149c2b2b667bf414c5 /src/gui/kernel/qapplication_qpa.cpp
parent411525a29e1d98c5e2a7052307bcd9e386710f26 (diff)
downloadQt-74d519f87e804b624ac76337fe2905d512d363fc.zip
Qt-74d519f87e804b624ac76337fe2905d512d363fc.tar.gz
Qt-74d519f87e804b624ac76337fe2905d512d363fc.tar.bz2
Lighthouse: don't force sending key events to the TLW
Diffstat (limited to 'src/gui/kernel/qapplication_qpa.cpp')
-rw-r--r--src/gui/kernel/qapplication_qpa.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/kernel/qapplication_qpa.cpp b/src/gui/kernel/qapplication_qpa.cpp
index b89e81d..e5b5396 100644
--- a/src/gui/kernel/qapplication_qpa.cpp
+++ b/src/gui/kernel/qapplication_qpa.cpp
@@ -802,9 +802,6 @@ void QApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEven
if (app_do_modal && !qt_try_modal(focusW, e->keyType))
return;
- if (!focusW->isWindow())
- focusW = focusW->window();
-
modifiers = e->modifiers;
QKeyEvent ev(e->keyType, e->key, e->modifiers, e->unicode, e->repeat, e->repeatCount);
QApplication::sendSpontaneousEvent(focusW, &ev);