From c5d8cf81436ead74b6bab6332f59cf86411aef16 Mon Sep 17 00:00:00 2001
From: Volker Hilsheimer <volker.hilsheimer@nokia.com>
Date: Sat, 25 Jul 2009 13:20:33 +0200
Subject: No link-errors when building from repository

---
 tests/auto/qgraphicssceneindex/qgraphicssceneindex.pro | 1 +
 tests/auto/qgraphicsview/tst_qgraphicsview.cpp         | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/tests/auto/qgraphicssceneindex/qgraphicssceneindex.pro b/tests/auto/qgraphicssceneindex/qgraphicssceneindex.pro
index 740a23e..d1bf3cc 100644
--- a/tests/auto/qgraphicssceneindex/qgraphicssceneindex.pro
+++ b/tests/auto/qgraphicssceneindex/qgraphicssceneindex.pro
@@ -1,3 +1,4 @@
 load(qttest_p4)
+requires(contains(QT_CONFIG,private_tests))
 SOURCES  += tst_qgraphicssceneindex.cpp
 
diff --git a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
index 37c5967..8056d74 100644
--- a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
+++ b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp
@@ -2253,6 +2253,8 @@ void tst_QGraphicsView::viewportUpdateMode2()
     QTest::qWait(300);
     const QRect viewportRect = view.viewport()->rect();
     QCOMPARE(viewportRect, QRect(0, 0, 200, 200));
+
+#if defined QT_BUILD_INTERNAL
     QGraphicsViewPrivate *viewPrivate = static_cast<QGraphicsViewPrivate *>(qt_widget_private(&view));
 
     QRect boundingRect;
@@ -2280,6 +2282,7 @@ void tst_QGraphicsView::viewportUpdateMode2()
     QCOMPARE(view.lastUpdateRegions.size(), 1);
     // Note that we adjust by 2 for antialiasing.
     QCOMPARE(view.lastUpdateRegions.at(0), QRegion(boundingRect.adjusted(-2, -2, 2, 2) & viewportRect));
+#endif
 }
 
 void tst_QGraphicsView::acceptDrops()
@@ -3454,6 +3457,7 @@ void tst_QGraphicsView::update()
     const QRect viewportRect = view.viewport()->rect();
     QCOMPARE(viewportRect, QRect(0, 0, 200, 200));
 
+#if defined QT_BUILD_INTERNAL
     const bool intersects = updateRect.intersects(viewportRect);
     QGraphicsViewPrivate *viewPrivate = static_cast<QGraphicsViewPrivate *>(qt_widget_private(&view));
     QCOMPARE(viewPrivate->updateRect(updateRect), intersects);
@@ -3472,6 +3476,7 @@ void tst_QGraphicsView::update()
         QCOMPARE(view.lastUpdateRegions.at(0), QRegion(updateRect.adjusted(-2, -2, 2, 2) & viewportRect));
     }
     QVERIFY(!viewPrivate->fullUpdatePending);
+#endif
 }
 
 void tst_QGraphicsView::inputMethodSensitivity()
-- 
cgit v0.12