fix tst_QWidget::inputFocus_task257832 on Windows
authorJoerg Bornemann <joerg.bornemann@trolltech.com>
Wed, 12 Aug 2009 12:24:52 +0000 (14:24 +0200)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>
Wed, 12 Aug 2009 12:57:57 +0000 (14:57 +0200)
commitd6b8f81a2440e7a507ecbb1becd90ef284510787
tree78cd3adc409ee2ba37dc100a007bb046314255b8
parentc847301367e58282893365d68cee3aa90b7588e4
fix tst_QWidget::inputFocus_task257832 on Windows

The widget must be created before calling QInputContext::setFocusWidget.
Otherwise we run into an assertion. Yes, this only occurs in debug
configuration but its still annoying...

Reviewed-by: thartman
tests/auto/qwidget/tst_qwidget.cpp