summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/qprintdialog_win.cpp
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-10-08 10:11:32 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-10-08 10:28:42 (GMT)
commit1040ba2fd850196234424f769e28d513a6eb0948 (patch)
treea2e5366716be4a28bb0877bcd5d483b697d74b8e /src/gui/dialogs/qprintdialog_win.cpp
parent5987274b8ce244d0020359d113800e7305367c68 (diff)
downloadQt-1040ba2fd850196234424f769e28d513a6eb0948.zip
Qt-1040ba2fd850196234424f769e28d513a6eb0948.tar.gz
Qt-1040ba2fd850196234424f769e28d513a6eb0948.tar.bz2
Fix compile errors on mingw (The version supplied with Qt 4.5)
Added the missing defines Reviewed-by: Denis
Diffstat (limited to 'src/gui/dialogs/qprintdialog_win.cpp')
-rw-r--r--src/gui/dialogs/qprintdialog_win.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/dialogs/qprintdialog_win.cpp b/src/gui/dialogs/qprintdialog_win.cpp
index f66c27f..843c4e2 100644
--- a/src/gui/dialogs/qprintdialog_win.cpp
+++ b/src/gui/dialogs/qprintdialog_win.cpp
@@ -52,6 +52,13 @@
#include <private/qprintengine_win_p.h>
#include <private/qprinter_p.h>
+#if defined(Q_CC_MINGW) && !defined(PD_NOCURRENTPAGE)
+#define PD_NOCURRENTPAGE 0x00800000
+#define PD_RESULT_PRINT 1
+#define PD_RESULT_APPLY 2
+#define START_PAGE_GENERAL 0XFFFFFFFF
+#endif
+
QT_BEGIN_NAMESPACE
extern void qt_win_eatMouseMove();