diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2019-04-01 09:41:39 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2019-04-01 15:19:40 +0200 |
commit | 330df37c7e2af0564bcd2de1f171bed4befcc074 (patch) | |
tree | f16c9254f3bbb8634490162203db4868782ce747 /vcl/qt5 | |
parent | 4a215887a845452f984c5453de883b538f660ad4 (diff) |
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@cib.de>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/Qt5Frame.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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() |