Skip to content

Commit

Permalink
QtDeclarative: Fix building of tests on Windows.
Browse files Browse the repository at this point in the history
Export inner classes, add missing module.

Change-Id: Iabc69ac5f08b70ade994c26d36bd08359fa71137
Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
  • Loading branch information
Friedemann Kleint authored and Qt by Nokia committed Nov 25, 2011
1 parent 24d4cfc commit fab28e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/declarative/qml/v8/qv8gccallback_p.h
Expand Up @@ -69,7 +69,7 @@ class Q_AUTOTEST_EXPORT QV8GCCallback
static void registerGcPrologueCallback();
static void releaseWorkerThreadGcPrologueCallbackData();

class Referencer {
class Q_AUTOTEST_EXPORT Referencer {
public:
~Referencer();
void addRelationship(QObject *object, v8::Persistent<v8::Value> handle);
Expand All @@ -81,7 +81,7 @@ class Q_AUTOTEST_EXPORT QV8GCCallback
friend class QV8GCCallback::ThreadData;
};

class Node {
class Q_AUTOTEST_EXPORT Node {
public:
typedef void (*PrologueCallback)(Referencer *r, Node *node);
Node(PrologueCallback callback);
Expand Down
2 changes: 1 addition & 1 deletion tests/auto/declarative/qquickgridview/qquickgridview.pro
Expand Up @@ -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
Expand Up @@ -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>
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit fab28e8

Please sign in to comment.