Commit ea82e10a authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Provide cursor geometry in device-independent pixels

QImage::size() returns the size of the cursor image in the native
pixels. We cannot use it as the cursor size.

(cherry picked from commit 170a0b63)
parent 44dcb6d0
......@@ -145,7 +145,7 @@ void Cursor::slotKGlobalSettingsNotifyChange(int type, int arg)
QRect Cursor::geometry() const
{
return QRect(m_pos - hotspot(), image().size());
return rect().translated(m_pos - hotspot());
}
QRect Cursor::rect() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment