summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsview
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2009-08-10 10:26:12 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2009-08-10 10:26:12 (GMT)
commit43d7bec69c7eb42b2c86d3f3b716245e069865e9 (patch)
tree1519bb8670d412b9f5da84e1a9045e9d46ff322f /tests/auto/qgraphicsview
parent2d5381360cb3b63a840dfdc7078ce6156bc28e39 (diff)
downloadQt-43d7bec69c7eb42b2c86d3f3b716245e069865e9.zip
Qt-43d7bec69c7eb42b2c86d3f3b716245e069865e9.tar.gz
Qt-43d7bec69c7eb42b2c86d3f3b716245e069865e9.tar.bz2
Make graphicsview autotest compile for Symbian
Diffstat (limited to 'tests/auto/qgraphicsview')
-rw-r--r--tests/auto/qgraphicsview/tst_qgraphicsview.cpp12
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;
};