summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qcursor_p.h
diff options
context:
space:
mode:
authorKari Pihkala <kari.pihkala@gmail.com>2014-08-02 09:59:18 +0300
committerJake Petroules <jake.petroules@theqtcompany.com>2015-09-06 23:19:03 +0000
commit6413ceeccff9078bc8ec2dcb63b445c031c420dd (patch)
treecdf80826edf167db9b95bf9c75a8e6e95cebc9e6 /src/gui/kernel/qcursor_p.h
parentcb12da0387458fb63a80a4f59d5ddb24d33ad59b (diff)
Fix default hotspot of a hidpi QCursor
The hotspot is defined in device independent coordinates, so the default coordinates need to be divided by device pixel ratio. Also, modify the scaling of cursor's pixmap to use SmoothTransformation to generate cleaner looking lodpi cursors from hidpi cursors. Change-Id: Ia938fd1e476e19e796f30712e23b06a5efed9964 Task-number: QTBUG-34116 Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
Diffstat (limited to 'src/gui/kernel/qcursor_p.h')
-rw-r--r--src/gui/kernel/qcursor_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qcursor_p.h b/src/gui/kernel/qcursor_p.h
index 0aaa62b891..188ea387b3 100644
--- a/src/gui/kernel/qcursor_p.h
+++ b/src/gui/kernel/qcursor_p.h
@@ -70,7 +70,8 @@ public:
short hx, hy;
static bool initialized;
void update();
- static QCursorData *setBitmap(const QBitmap &bitmap, const QBitmap &mask, int hotX, int hotY);
+ static QCursorData *setBitmap(const QBitmap &bitmap, const QBitmap &mask, int hotX, int hotY,
+ qreal devicePixelRatio);
};
extern QCursorData *qt_cursorTable[Qt::LastCursor + 1]; // qcursor.cpp