From 2d09fe38ac9dd698d2259d9f0c973a82bf3b26c0 Mon Sep 17 00:00:00 2001 From: Olli Werwolff Date: Wed, 8 Jun 2011 12:34:29 +0200 Subject: Undefine DrawText in qlineedit.cpp There is a #define DrawText DrawTextW in winuser.h which is included in windows.h so that the enum value in line 1981 is seen as DrawTextW and thus is not a valid enum value on Windows. Reviewed-by: Samuel Reviewed-by: Lars Knoll --- src/widgets/widgets/qlineedit.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/widgets/widgets') diff --git a/src/widgets/widgets/qlineedit.cpp b/src/widgets/widgets/qlineedit.cpp index 8a93c286ac..3c401fd166 100644 --- a/src/widgets/widgets/qlineedit.cpp +++ b/src/widgets/widgets/qlineedit.cpp @@ -85,6 +85,9 @@ #endif #include +#ifdef DrawText +#undef DrawText +#endif QT_BEGIN_NAMESPACE -- cgit v1.2.3