Commit 170a0b63 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

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.
parent c8eeefbd
......@@ -144,7 +144,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