Use qt_mac_effectiveview_for for setFocus_sys
authorSamuel Gaist <samuel.gaist@edeltech.ch>
Fri, 8 Nov 2013 21:50:44 +0000 (22:50 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 5 Dec 2013 20:31:27 +0000 (21:31 +0100)
commit894983bea2314c2251a10b0924259a6a58c996ef
treea06ffeff8e305dff72ff4a4bbd445a4bed1eb052
parent1d24a83365c2360c064563c15cb09ec8e5f6670a
Use qt_mac_effectiveview_for for setFocus_sys

Currently setFocus_sys use qt_mac_nativeview_for to set the focus which
triggers a bug rerouting the key events through NSMenu rather that
directly to the correct widget. Get the effective id returns the
correct widget. This changeset applies the patch proposed in the bug
report

Task-number: QTBUG-34371
Change-Id: I0831f41ca409ff309954bb45a50975dd4eb1406a
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
src/gui/kernel/qwidget_mac.mm