From fe37ae066fdfad313215937aab2428b74892b746 Mon Sep 17 00:00:00 2001 From: Bjoern Breitmeyer Date: Mon, 2 Jul 2012 10:36:25 +0200 Subject: [PATCH] fixed compile for mouse button handling on wince WinCE does not support SM_SWAPBUTTON, so the define will let ce fail the function call and correctly assume normal mouse button handling Change-Id: Id603b3b6a995e22d8800e19a5566a56df95c8962 Reviewed-by: Friedemann Kleint --- src/plugins/platforms/windows/qplatformfunctions_wince.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/platforms/windows/qplatformfunctions_wince.h b/src/plugins/platforms/windows/qplatformfunctions_wince.h index b04c359..d8905f1 100644 --- a/src/plugins/platforms/windows/qplatformfunctions_wince.h +++ b/src/plugins/platforms/windows/qplatformfunctions_wince.h @@ -176,6 +176,10 @@ #define VREFRESH 116 #endif +#ifndef SM_SWAPBUTTON +#define SM_SWAPBUTTON 23 +#endif + // application defines #define SPI_SETNONCLIENTMETRICS 72 #define SPI_SETICONTITLELOGFONT 0x0022 -- 2.7.4