[Libreoffice-commits] core.git: vcl/qt5
Katarina Behrens (via logerrit)
logerrit at kemper.freedesktop.org
Mon Apr 1 13:20:08 UTC 2019
vcl/qt5/Qt5Frame.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 330df37c7e2af0564bcd2de1f171bed4befcc074
Author: Katarina Behrens <Katarina.Behrens at cib.de>
AuthorDate: Mon Apr 1 09:41:39 2019 +0200
Commit: Katarina Behrens <Katarina.Behrens at cib.de>
CommitDate: Mon Apr 1 15:19:40 2019 +0200
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: Katarina Behrens <Katarina.Behrens at cib.de>
diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx
index 65055e8546a1..4f5d18c7eb85 100644
--- a/vcl/qt5/Qt5Frame.cxx
+++ b/vcl/qt5/Qt5Frame.cxx
@@ -687,9 +687,9 @@ void Qt5Frame::CaptureMouse(bool bMouse)
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)));
- m_pQWidget->setCursor(aCursor);
}
void Qt5Frame::Flush()
More information about the Libreoffice-commits
mailing list