summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/kernel/qplatformcursor.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/kernel/qplatformcursor.cpp b/src/gui/kernel/qplatformcursor.cpp
index c2f510b496..0162360718 100644
--- a/src/gui/kernel/qplatformcursor.cpp
+++ b/src/gui/kernel/qplatformcursor.cpp
@@ -122,8 +122,13 @@ QPoint QPlatformCursor::pos() const
void QPlatformCursor::setPos(const QPoint &pos)
{
- Q_UNUSED(pos);
- qWarning("This plugin does not support QCursor::setPos()");
+ static bool firstCall = true;
+ if (firstCall) {
+ firstCall = false;
+ qWarning("This plugin does not support QCursor::setPos()"
+ "; emulating movement within the application.");
+ }
+ QWindowSystemInterface::handleMouseEvent(0, pos, pos, Qt::NoButton);
}
// End of display and pointer event handling code