diff options
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qplatformcursor_qpa.h | 2 | ||||
-rw-r--r-- | src/gui/kernel/qwidget_qpa.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qplatformcursor_qpa.h b/src/gui/kernel/qplatformcursor_qpa.h index 71d0e87444..18698b6457 100644 --- a/src/gui/kernel/qplatformcursor_qpa.h +++ b/src/gui/kernel/qplatformcursor_qpa.h @@ -85,7 +85,7 @@ public: // input methods virtual void pointerEvent(const QMouseEvent & event) { Q_UNUSED(event); } - virtual void changeCursor(QCursor * widgetCursor, QWidget * widget) = 0; + virtual void changeCursor(QCursor * widgetCursor, QWindow * widget) = 0; protected: QPlatformScreen* screen; // Where to request an update diff --git a/src/gui/kernel/qwidget_qpa.cpp b/src/gui/kernel/qwidget_qpa.cpp index aef49dd212..5fea32eb9b 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 |