summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qcursor.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-04-15 16:08:54 +0200
committerPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-04-15 16:08:54 +0200
commitd450fcf0625700021b9646080f6ce0e7059f243d (patch)
tree86a3a1cd43d344d2953ad82d16617eccefe7d73f /src/gui/kernel/qcursor.cpp
parent4e541c356943fa304b2841b5234a689c4cc93f45 (diff)
DevicePixels -> NativePixels
Diffstat (limited to 'src/gui/kernel/qcursor.cpp')
-rw-r--r--src/gui/kernel/qcursor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qcursor.cpp b/src/gui/kernel/qcursor.cpp
index dc1b6dca76..92e591f8ac 100644
--- a/src/gui/kernel/qcursor.cpp
+++ b/src/gui/kernel/qcursor.cpp
@@ -180,7 +180,7 @@ QPoint QCursor::pos(const QScreen *screen)
{
if (screen)
if (const QPlatformCursor *cursor = screen->handle()->cursor())
- return QHighDpi::fromDevicePixels(cursor->pos());
+ return QHighDpi::fromNativePixels(cursor->pos());
return QGuiApplicationPrivate::lastCursorPosition.toPoint();
}
@@ -232,7 +232,7 @@ void QCursor::setPos(QScreen *screen, int x, int y)
{
if (screen) {
if (QPlatformCursor *cursor = screen->handle()->cursor()) {
- const QPoint devicePos = QHighDpi::toDevicePixels(QPoint(x, y));
+ const QPoint devicePos = QHighDpi::toNativePixels(QPoint(x, y));
// Need to check, since some X servers generate null mouse move
// events, causing looping in applications which call setPos() on
// every mouse move event.