Kaydet (Commit) 7963a389 authored tarafından Katarina Behrens's avatar Katarina Behrens Kaydeden (comit) Thorsten Behrens

tdf#120865: preserve cursor shape on repositioning the cursor

i.e. don't recreate cursor with new (default) arrow shape in
SalFrame::SetPointerPos, but simply move the existing one

Change-Id: I3406ceff25a53de6f2afa318114370c318e6a500
Reviewed-on: https://gerrit.libreoffice.org/70049
Tested-by: Jenkins
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
(cherry picked from commit 330df37c)
Reviewed-on: https://gerrit.libreoffice.org/70238Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst 0ff90fd5
...@@ -682,9 +682,9 @@ void Qt5Frame::CaptureMouse(bool bMouse) ...@@ -682,9 +682,9 @@ void Qt5Frame::CaptureMouse(bool bMouse)
void Qt5Frame::SetPointerPos(long nX, long nY) void Qt5Frame::SetPointerPos(long nX, long nY)
{ {
QCursor aCursor = m_pQWidget->cursor(); // some cursor already exists (and it has m_ePointerStyle shape)
// so here we just reposition it
QCursor::setPos(m_pQWidget->mapToGlobal(QPoint(nX, nY))); QCursor::setPos(m_pQWidget->mapToGlobal(QPoint(nX, nY)));
m_pQWidget->setCursor(aCursor);
} }
void Qt5Frame::Flush() void Qt5Frame::Flush()
......
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