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
parent
c8eeefbd7d
commit
170a0b6395
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue