summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qwidget_qpa.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/kernel/qwidget_qpa.cpp')
-rw-r--r--src/widgets/kernel/qwidget_qpa.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/widgets/kernel/qwidget_qpa.cpp b/src/widgets/kernel/qwidget_qpa.cpp
index c6680eacec..86d8da254a 100644
--- a/src/widgets/kernel/qwidget_qpa.cpp
+++ b/src/widgets/kernel/qwidget_qpa.cpp
@@ -1064,9 +1064,7 @@ void QWidgetPrivate::setModal_sys()
static inline void applyCursor(QWidget *w, QCursor c)
{
if (QWindow *window = w->windowHandle())
- if (const QScreen *screen = window->screen())
- if (QPlatformCursor *cursor = screen->handle()->cursor())
- cursor->changeCursor(&c, window);
+ window->setCursor(c);
}
void qt_qpa_set_cursor(QWidget *w, bool force)
@@ -1097,10 +1095,7 @@ void qt_qpa_set_cursor(QWidget *w, bool force)
return;
if (w->isWindow() || w->testAttribute(Qt::WA_SetCursor)) {
- QCursor *oc = QApplication::overrideCursor();
- if (oc)
- applyCursor(nativeParent, *oc);
- else if (w->isEnabled())
+ if (w->isEnabled())
applyCursor(nativeParent, w->cursor());
else
// Enforce the windows behavior of clearing the cursor on