QtDeclarative: Fix building of tests on Windows.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Fri, 25 Nov 2011 07:27:09 +0000 (08:27 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 Nov 2011 10:52:35 +0000 (11:52 +0100)
Export inner classes, add missing module.

Change-Id: Iabc69ac5f08b70ade994c26d36bd08359fa71137
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
src/declarative/qml/v8/qv8gccallback_p.h
tests/auto/declarative/qquickgridview/qquickgridview.pro
tests/auto/declarative/qquicktextinput/tst_qquicktextinput.cpp

index 91574cb..f18b20b 100644 (file)
@@ -69,7 +69,7 @@ public:
     static void registerGcPrologueCallback();
     static void releaseWorkerThreadGcPrologueCallbackData();
 
-    class Referencer {
+    class Q_AUTOTEST_EXPORT Referencer {
     public:
         ~Referencer();
         void addRelationship(QObject *object, v8::Persistent<v8::Value> handle);
@@ -81,7 +81,7 @@ public:
         friend class QV8GCCallback::ThreadData;
     };
 
-    class Node {
+    class Q_AUTOTEST_EXPORT Node {
     public:
         typedef void (*PrologueCallback)(Referencer *r, Node *node);
         Node(PrologueCallback callback);
index 6c097d6..c88b63a 100644 (file)
@@ -10,4 +10,4 @@ DEPLOYMENT += testDataFiles
 
 CONFIG += parallel_test
 CONFIG += insignificant_test #QTBUG-22807
-QT += core-private gui-private v8-private declarative-private opengl-private testlib
+QT += core-private gui-private v8-private declarative-private opengl-private testlib widgets
index 4b041dd..b19842c 100644 (file)
@@ -45,6 +45,7 @@
 #include <QFile>
 #include <QtDeclarative/qquickview.h>
 #include <QtGui/qguiapplication.h>
+#include <QtGui/qstylehints.h>
 #include <QInputPanel>
 #include <private/qquicktextinput_p.h>
 #include <private/qquicktextinput_p_p.h>
@@ -2659,7 +2660,7 @@ void tst_qquicktextinput::tripleClickSelectsAll()
     // And now we press the third click too late, so no triple click event is triggered.
     QTest::mouseDClick(&view, Qt::LeftButton, 0, pointInside);
     QGuiApplication::processEvents();
-    QTest::qWait(QApplication::doubleClickInterval() + 1);
+    QTest::qWait(qApp->styleHints()->mouseDoubleClickInterval() + 1);
     QTest::mouseClick(&view, Qt::LeftButton, 0, pointInside);
     QGuiApplication::processEvents();
     QVERIFY(input->selectedText().isEmpty());