Windows: Fix override cursor logic

Fixed a logic error that prevented override cursors being applied in
Windows plugin. The logic for override cursor handling is already
in crossplatform code, so no need to do extra checks in plugin.

Task-number: QTBUG-24657
Change-Id: Ied9b36b57f22607ef5bb5c30f2926b0053eebca5
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Miikka Heikkinen 2012-03-07 13:31:30 +02:00 committed by Qt by Nokia
parent 24be238fcc
commit 83d113feb0

View File

@ -1309,15 +1309,13 @@ void QWindowsWindow::getSizeHints(MINMAXINFO *mmi) const
}
/*!
\brief Applies to cursor property set on the window to the global cursor
unless there is an override cursor.
\brief Applies to cursor property set on the window to the global cursor.
\sa QWindowsCursor
*/
void QWindowsWindow::applyCursor()
{
if (!QGuiApplication::overrideCursor())
SetCursor(m_cursor.handle());
}