Fix further test builds on Windows.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Wed, 31 Aug 2011 13:21:48 +0000 (15:21 +0200)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>
Wed, 31 Aug 2011 13:22:35 +0000 (15:22 +0200)
Change-Id: I9846d19c5975f4d17bed46c59272a0fa428fd0d1
Reviewed-on: http://codereview.qt.nokia.com/3980
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
tests/auto/qaccessibility/tst_qaccessibility.cpp
tests/auto/qhttpsocketengine/tst_qhttpsocketengine.cpp
tests/auto/qpainter/tst_qpainter.cpp
tests/auto/qsql/qsql.pro
tests/auto/windowsmobile/test/test.pro
tests/auto/windowsmobile/testQMenuBar/testQMenuBar.pro

index d8aa382..00999bd 100644 (file)
 #include <QtGui>
 #include <math.h>
 
+#if defined(Q_OS_WIN) && defined(interface)
+#   undef interface
+#endif
+
 
 #include "QtTest/qtestaccessible.h"
 
index ee914bd..1e1a51b 100644 (file)
 ****************************************************************************/
 
 
-#include <QtTest/QtTest>
-
-#include <qcoreapplication.h>
+#include <QtTest/QTest>
+#include <QtTest/QTestEventLoop>
+#include <QtCore/QQueue>
+#include <QtCore/QString>
+#include <QtCore/QCoreApplication>
 
 #include <private/qhttpsocketengine_p.h>
 #include <qhostinfo.h>
index 8898a48..ff4f7ad 100644 (file)
@@ -564,7 +564,7 @@ void tst_QPainter::qt_format_text_boundingRect()
                        QCOMPARE(pbr, br);
                    }
 #endif
-#if !defined(Q_OS_WINCE) && !defined(Q_OS_SYMBIAN)
+#if !defined(QT_NO_PRINTER) && !defined(Q_OS_WINCE) && !defined(Q_OS_SYMBIAN)
                    {
                        QPrinter printer(QPrinter::HighResolution);
                        if (printer.printerName().isEmpty()) {
index e367a8e..3357e76 100644 (file)
@@ -1,7 +1,7 @@
 load(qttest_p4)
 SOURCES  += tst_qsql.cpp
 
-QT += sql sql-private
+QT += sql sql-private gui widgets
 
 wince*: {
    DEPLOYMENT_PLUGIN += qsqlite
index b0536a5..595a619 100644 (file)
@@ -1,6 +1,6 @@
 
 load(qttest_p4)
-
+QT += widgets
 HEADERS += ddhelper.h
 SOURCES += tst_windowsmobile.cpp ddhelper.cpp
 RESOURCES += windowsmobile.qrc