summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorPovilas Kanapickas <povilas@radix.lt>2022-09-02 00:04:39 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-05 16:20:03 +0200
commit99b85a2eda006a59306042dad5b0b1de116febf3 (patch)
tree8508c83afa26f2898609b08943cc1530f0f0830e /desktop
parentc8cc4c29369f3d5df22c0b9260c00816a7c891eb (diff)
vcl: Rename Gesture event to GesturePan
We have 5 gesture types: GestureZoom, GestureRotate, Gesture (for panning), Swipe and LongPress. For consistency all of these will use Gesture as a prefix to reduce confusion and for easier grepping throughout the codebase. Change-Id: I8b9e245d011203a19c1172f9833c172f65382ca9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139241 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 95f96ee67cf4..6b932f8c7b53 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -121,7 +121,7 @@
#include <svx/svxids.hrc>
#include <svx/ucsubset.hxx>
#include <vcl/vclevent.hxx>
-#include <vcl/GestureEvent.hxx>
+#include <vcl/GestureEventPan.hxx>
#include <vcl/svapp.hxx>
#include <unotools/resmgr.hxx>
#include <tools/fract.hxx>
@@ -4633,14 +4633,14 @@ static void doc_postWindowGestureEvent(LibreOfficeKitDocument* /*pThis*/, unsign
}
OString aType(pType);
- GestureEventType eEventType = GestureEventType::PanningUpdate;
+ GestureEventPanType eEventType = GestureEventPanType::Update;
if (aType == "panBegin")
- eEventType = GestureEventType::PanningBegin;
+ eEventType = GestureEventPanType::Begin;
else if (aType == "panEnd")
- eEventType = GestureEventType::PanningEnd;
+ eEventType = GestureEventPanType::End;
- GestureEvent aEvent {
+ GestureEventPan aEvent {
sal_Int32(nX),
sal_Int32(nY),
eEventType,