Fix override cursor issue with QtQuick2ApplicationViewer.
authorKati Kankaanpaa <kati.kankaanpaa@digia.com>
Tue, 22 Apr 2014 18:39:55 +0000 (11:39 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 2 May 2014 10:16:00 +0000 (12:16 +0200)
commitaef82ebe15d17e1bfe7c915d33d57a7bec6668c2
tree25ef53e6529f1a2c7b78d8ae0d5f105aaa8d70ae
parent948fa572de1c6398df03246b7a6c124af312e967
Fix override cursor issue with QtQuick2ApplicationViewer.

If the override cursor was set before
QtQuick2ApplicationViewer was shown then the cursor
was the default cursor and not the override cursor.
The new cursor was applied only if the window was
visible and the cursor has been set. Now the cursor
is applied also if override cursor is set.

Change-Id: I88618c719e43b2802e209bef440461c532d19f48
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
src/gui/kernel/qwindow.cpp