summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorKevin Funk <kevin.funk@kdab.com>2012-08-14 16:05:52 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-17 12:22:09 +0200
commit525ec093b4c74b9e04ee35135975cf61e32c73fd (patch)
treebde1569c23bf63727c8a691531f1c0de71740101 /src/plugins
parent0d897a7fb6e2b2d6c2e8fe31aab1837ebd234b58 (diff)
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 <miikka.heikkinen@digia.com> Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/platforms/windows/qplatformfunctions_wince.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qplatformfunctions_wince.h b/src/plugins/platforms/windows/qplatformfunctions_wince.h
index dc3d80920b..a6b3889cf7 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