From: Kevin Funk Date: Tue, 14 Aug 2012 14:05:52 +0000 (+0200) Subject: WinCE: Fix call of GetAncestor in setParent_sys() X-Git-Tag: v5.0.0-beta1~239 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=525ec093b4c74b9e04ee35135975cf61e32c73fd;p=profile%2Fivi%2Fqtbase.git WinCE: Fix call of GetAncestor in setParent_sys() There is no GetAncestor under Windows CE. Use GetParent instead. Change-Id: I87b86961dade0d5c7c8bf6a470f777d32188dcd2 Reviewed-by: Miikka Heikkinen Reviewed-by: Andreas Holzammer Reviewed-by: Joerg Bornemann --- diff --git a/src/plugins/platforms/windows/qplatformfunctions_wince.h b/src/plugins/platforms/windows/qplatformfunctions_wince.h index dc3d809..a6b3889 100644 --- a/src/plugins/platforms/windows/qplatformfunctions_wince.h +++ b/src/plugins/platforms/windows/qplatformfunctions_wince.h @@ -295,6 +295,15 @@ inline DWORD GetGlyphOutline( HDC /*hdc*/, UINT /*uChar*/, INT /*fuFormat*/, GLY return GDI_ERROR; } +inline HWND GetAncestor(HWND hWnd, UINT /*gaFlags*/) +{ + return GetParent(hWnd); +} + +#ifndef GA_PARENT +# define GA_PARENT 1 +#endif + #ifndef SPI_SETFONTSMOOTHINGTYPE # define SPI_SETFONTSMOOTHINGTYPE 0x200B #endif