qt5base-lts/tests/auto/gui/kernel/qguiapplication
Miikka Heikkinen a48508cd76 Send leave to most recently entered window when modal dialog is shown.
If a modal dialog was shown as a response to button click, the button
retained its hover highlight, because it didn't get leave event.

Fixed by tracking the most recently entered window and sending a leave
to it when modal dialog is shown that blocks it.

Also modified tst_QGuiApplication::modalWindow() autotest to check
for enters and leaves.

Task-number: QTBUG-27644
Change-Id: I387647e18a762a39d523e3df31221b9583a39f9d
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
2012-10-30 12:53:46 +01:00
..
qguiapplication.pro Make tests compile without gui-private 2012-08-02 17:25:37 +02:00
testplugin.json Fix events being processed on application start 2012-09-26 19:54:19 +02:00
tst_qguiapplication.cpp Send leave to most recently entered window when modal dialog is shown. 2012-10-30 12:53:46 +01:00