diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2020-06-28 00:48:01 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2020-06-29 07:13:02 +0200 |
commit | 855f17c5f683ab1dacf411ac410f237700a8fbcf (patch) | |
tree | d15e87b4a1ca1f59c76c5f4a2beb1f5bdd02106f | |
parent | 150f5cbe108793e427d8106d8cfa60dd6c5c5cb4 (diff) |
tdf#131991 Qt5 RTL mirror mouse wheel X position
Just like all the other events, the mouse wheels X position must
be mirrord in LO RTL mode.
Change-Id: I28e8da0455d941f42f869b08edcdbe570de366c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97338
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
(cherry picked from commit 9eda78fd53fe3c76eb9d4b63add68f266f551b10)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97354
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r-- | vcl/qt5/Qt5Widget.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qt5/Qt5Widget.cxx b/vcl/qt5/Qt5Widget.cxx index 12e9a54f7f4f..ca4bef0ffbfe 100644 --- a/vcl/qt5/Qt5Widget.cxx +++ b/vcl/qt5/Qt5Widget.cxx @@ -181,7 +181,7 @@ void Qt5Widget::wheelEvent(QWheelEvent* pEvent) SalWheelMouseEvent aEvent; aEvent.mnTime = pEvent->timestamp(); - aEvent.mnX = pEvent->pos().x(); + aEvent.mnX = QGuiApplication::isLeftToRight() ? pEvent->pos().x() : width() - pEvent->pos().x(); aEvent.mnY = pEvent->pos().y(); aEvent.mnCode = GetKeyModCode(pEvent->modifiers()) | GetMouseModCode(pEvent->buttons()); |