Fix setting custom cursor for widgets and windows before showing them
authorMiikka Heikkinen <miikka.heikkinen@digia.com>
Mon, 15 Oct 2012 11:17:01 +0000 (14:17 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 16 Oct 2012 13:29:15 +0000 (15:29 +0200)
commit74230f126be4d7d6d6a91892ddb91bf050a46396
treeab0ca7b0a1ecfbe962240e0ee61941102592b739
parentc92ceb179f609de4d3c8ec9433c9329e48214224
Fix setting custom cursor for widgets and windows before showing them

If custom cursor was set before the window was created, it didn't
actually get set, and in some cases even caused a crash.
Fixed by making sure the cursor is correct when showing widget/window.

Task-number: QTBUG-27535
Change-Id: I3bc946a9c406c96af5b86869a3a54893f8980aba
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/gui/kernel/qwindow.cpp
src/gui/kernel/qwindow_p.h
src/widgets/kernel/qwidget_qpa.cpp