diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qgraphicsview/tst_qgraphicsview.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp index b9f0260..84b1d6c 100644 --- a/tests/auto/qgraphicsview/tst_qgraphicsview.cpp +++ b/tests/auto/qgraphicsview/tst_qgraphicsview.cpp @@ -1361,7 +1361,7 @@ void tst_QGraphicsView::itemsInRect_cosmeticAdjust() { QFETCH(QRect, updateRect); QFETCH(int, numPaints); - + QGraphicsScene scene(-100, -100, 200, 200); CountPaintItem *rect = new CountPaintItem(QRectF(-50, -50, 100, 100)); scene.addItem(rect); @@ -2392,7 +2392,7 @@ void tst_QGraphicsView::optimizationFlags_dontSavePainterState() MessUpPainterItem *parent = new MessUpPainterItem(QRectF(0, 0, 100, 100)); MessUpPainterItem *child = new MessUpPainterItem(QRectF(0, 0, 100, 100)); child->setParentItem(parent); - + QGraphicsScene scene; scene.addItem(parent); @@ -3264,7 +3264,9 @@ void tst_QGraphicsView::mouseTracking() QGraphicsView view(&scene); QGraphicsRectItem *item = new QGraphicsRectItem(10, 10, 10, 10); +#ifndef QT_NO_CURSOR item->setCursor(Qt::CrossCursor); +#endif scene.addItem(item); QVERIFY(view.viewport()->hasMouseTracking()); } @@ -3272,7 +3274,9 @@ void tst_QGraphicsView::mouseTracking() // Adding an item to the scene before the scene is set on the view. QGraphicsScene scene(-10000, -10000, 20000, 20000); QGraphicsRectItem *item = new QGraphicsRectItem(10, 10, 10, 10); +#ifndef QT_NO_CURSOR item->setCursor(Qt::CrossCursor); +#endif scene.addItem(item); QGraphicsView view(&scene); @@ -3287,7 +3291,9 @@ void tst_QGraphicsView::mouseTracking() QGraphicsView view3(&scene); QGraphicsRectItem *item = new QGraphicsRectItem(10, 10, 10, 10); +#ifndef QT_NO_CURSOR item->setCursor(Qt::CrossCursor); +#endif scene.addItem(item); QVERIFY(view1.viewport()->hasMouseTracking()); @@ -3337,7 +3343,7 @@ public: QGraphicsRectItem::paint(painter, option, widget); ++paints; } - + int paints; }; |