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.
icc-effect-5.26.4
Vlad Zahorodnii 2020-10-25 17:24:30 +02:00
parent c8eeefbd7d
commit 170a0b6395
1 changed files with 1 additions and 1 deletions

View File

@ -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