Correctly handle null windows or widgets in keyClick()
authorLars Knoll <lars.knoll@nokia.com>
Fri, 21 Oct 2011 09:01:21 +0000 (11:01 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 31 Oct 2011 08:55:07 +0000 (09:55 +0100)
commit5761d8546f3ff3802cae85ed5224c2bdd9524452
treeacaf3b5d808c6112a3f5423f468e52a32ea083ee
parent79fb588030fbfec9f5e8cc2d81c90965e181631f
Correctly handle null windows or widgets in keyClick()

Allow passing of null windows or widgets to keyClick().
In that case route the event through the normal Qt event
processing. This allows e.g. shortcuts to catch the
key event.

Change-Id: Ic9455ea9be5164918b1c0bccbd58dd32eae74ff1
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
src/testlib/qtestkeyboard.h
tests/auto/widgets/widgets/qmenubar/tst_qmenubar.cpp