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.
This commit is contained in:
parent
c8eeefbd7d
commit
170a0b6395
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue