diff options
author | Volker Hilsheimer <volker.hilsheimer@nokia.com> | 2009-07-25 11:20:33 (GMT) |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@nokia.com> | 2009-07-25 11:38:44 (GMT) |
commit | c5d8cf81436ead74b6bab6332f59cf86411aef16 (patch) | |
tree | 7d39dced9c55ec1d48fb4c758edc463b88d32919 /tests/auto/qgraphicsview | |
parent | 486920375bdd00ac47b44a770838e50071220b46 (diff) | |
download | Qt-c5d8cf81436ead74b6bab6332f59cf86411aef16.zip Qt-c5d8cf81436ead74b6bab6332f59cf86411aef16.tar.gz Qt-c5d8cf81436ead74b6bab6332f59cf86411aef16.tar.bz2 |
No link-errors when building from repository
Diffstat (limited to 'tests/auto/qgraphicsview')
-rw-r--r-- | tests/auto/qgraphicsview/tst_qgraphicsview.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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() |