[Libreoffice-commits] core.git: vcl/ios
Tor Lillqvist
tml at collabora.com
Fri Nov 7 14:52:31 PST 2014
vcl/ios/iosinst.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit c989f5e0e11e295b11ffc921b0d105869e037e47
Author: Tor Lillqvist <tml at collabora.com>
Date: Sat Nov 8 00:51:21 2014 +0200
These constants are now in the scoped enum MouseEventModifiers
Change-Id: I73e1498198cbb55ccd969713a38b6cd678c94643
diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx
index 73092e6..f3fe0b3 100644
--- a/vcl/ios/iosinst.cxx
+++ b/vcl/ios/iosinst.cxx
@@ -321,15 +321,15 @@ void touch_lo_mouse(int x, int y, MLOMouseButtonState state, MLOModifierMask mod
switch (state) {
case DOWN:
- aEvent = MouseEvent(Point(x, y), 1, MOUSE_SIMPLECLICK, MOUSE_LEFT, nModifiers);
+ aEvent = MouseEvent(Point(x, y), 1, MouseEventModifiers::SIMPLECLICK, MOUSE_LEFT, nModifiers);
nEvent = VCLEVENT_WINDOW_MOUSEBUTTONDOWN;
break;
case MOVE:
- aEvent = MouseEvent(Point(x, y), 1, MOUSE_SIMPLEMOVE, MOUSE_LEFT, nModifiers);
+ aEvent = MouseEvent(Point(x, y), 1, MouseEventModifiers::SIMPLEMOVE, MOUSE_LEFT, nModifiers);
nEvent = VCLEVENT_WINDOW_MOUSEMOVE;
break;
case UP:
- aEvent = MouseEvent(Point(x, y), 1, MOUSE_SIMPLECLICK, MOUSE_LEFT, nModifiers);
+ aEvent = MouseEvent(Point(x, y), 1, MouseEventModifiers::SIMPLECLICK, MOUSE_LEFT, nModifiers);
nEvent = VCLEVENT_WINDOW_MOUSEBUTTONUP;
break;
default:
@@ -388,7 +388,7 @@ void touch_lo_keyboard_did_hide()
if (pFocus) {
MouseEvent aEvent;
- aEvent = MouseEvent(Point(0, 0), 0, MOUSE_LEAVEWINDOW, MOUSE_LEFT);
+ aEvent = MouseEvent(Point(0, 0), 0, MouseEventModifiers::LEAVEWINDOW, MOUSE_LEFT);
Application::PostMouseEvent(VCLEVENT_WINDOW_MOUSEMOVE, pFocus->GetWindow(), &aEvent);
}
}
More information about the Libreoffice-commits
mailing list