summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_qpa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qwidget_qpa.cpp')
-rw-r--r--src/gui/kernel/qwidget_qpa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_qpa.cpp b/src/gui/kernel/qwidget_qpa.cpp
index aef49dd2129..5fea32eb9b5 100644
--- a/src/gui/kernel/qwidget_qpa.cpp
+++ b/src/gui/kernel/qwidget_qpa.cpp
@@ -818,7 +818,7 @@ void qt_qpa_set_cursor(QWidget * w, bool force)
} while (0);
foreach (QWeakPointer<QPlatformCursor> cursor, QPlatformCursorPrivate::getInstances())
if (cursor)
- cursor.data()->changeCursor(&cursorCursor, cursorWidget);
+ cursor.data()->changeCursor(&cursorCursor, cursorWidget->windowHandle());
}
#endif //QT_NO_CURSOR