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
bb10
Olli Werwolff 2011-06-08 12:34:29 +02:00
parent 4b566e5db9
commit 2d09fe38ac
1 changed files with 3 additions and 0 deletions

View File

@ -85,6 +85,9 @@
#endif
#include <limits.h>
#ifdef DrawText
#undef DrawText
#endif
QT_BEGIN_NAMESPACE