summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJason Barron <jbarron@trolltech.com>2009-08-10 13:05:02 (GMT)
committerJason Barron <jbarron@trolltech.com>2009-08-10 13:05:02 (GMT)
commit5ed8336dff99bd9f86f435e8e0a58adc6890cc51 (patch)
treeb449e8d8805d702095f4fcb74901d77886822178 /tests
parent0df5d5e4367a8052082897d02b4f00429d5cc4c1 (diff)
parent43d7bec69c7eb42b2c86d3f3b716245e069865e9 (diff)
downloadQt-5ed8336dff99bd9f86f435e8e0a58adc6890cc51.zip
Qt-5ed8336dff99bd9f86f435e8e0a58adc6890cc51.tar.gz
Qt-5ed8336dff99bd9f86f435e8e0a58adc6890cc51.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt-s60-public
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/collections/tst_collections.cpp8
-rw-r--r--tests/auto/qdir/tst_qdir.cpp2
-rw-r--r--tests/auto/qgraphicsview/tst_qgraphicsview.cpp12
3 files changed, 16 insertions, 6 deletions
diff --git a/tests/auto/collections/tst_collections.cpp b/tests/auto/collections/tst_collections.cpp
index 6102530..cb95c08 100644
--- a/tests/auto/collections/tst_collections.cpp
+++ b/tests/auto/collections/tst_collections.cpp
@@ -992,7 +992,7 @@ void tst_Collections::linkedList()
QVERIFY(*(list.begin() + 2) == "alpha");
QVERIFY(*(list.begin() + 3) == "beta");
}
-
+
{
QLinkedList<int> a;
QCOMPARE(a.startsWith(1), false);
@@ -3453,7 +3453,7 @@ class Key1
class T1
{};
class T2
-};
+{};
#else
class Key1;
class T1;
@@ -3468,7 +3468,11 @@ void tst_Collections::forwardDeclared()
{ typedef QMap<Key1, T1> C; C *x = 0; C::iterator i; C::const_iterator j; Q_UNUSED(x) }
{ typedef QMultiMap<Key1, T1> C; C *x = 0; C::iterator i; C::const_iterator j; Q_UNUSED(x) }
#endif
+#if !defined(Q_CC_RVCT)
+ // RVCT can't handle forward declared template parameters if those are used to declare
+ // class members inside templated class.
{ typedef QPair<T1, T2> C; C *x = 0; Q_UNUSED(x) }
+#endif
{ typedef QList<T1> C; C *x = 0; C::iterator i; C::const_iterator j; Q_UNUSED(x) }
{ typedef QLinkedList<T1> C; C *x = 0; C::iterator i; C::const_iterator j; Q_UNUSED(x) }
{ typedef QVector<T1> C; C *x = 0; C::iterator i; C::const_iterator j; Q_UNUSED(x) Q_UNUSED(i) Q_UNUSED(j) }
diff --git a/tests/auto/qdir/tst_qdir.cpp b/tests/auto/qdir/tst_qdir.cpp
index 549e9d1..16f6eea 100644
--- a/tests/auto/qdir/tst_qdir.cpp
+++ b/tests/auto/qdir/tst_qdir.cpp
@@ -638,7 +638,7 @@ void tst_QDir::entryList()
return;
}
bool doContentCheck = true;
-#ifdef Q_OS_UNIX
+#if defined(Q_OS_UNIX) && !defined(Q_OS_SYMBIAN)
if (qstrcmp(QTest::currentDataTag(), "QDir::AllEntries | QDir::Writable") == 0) {
// for root, everything is writeable
if (::getuid() == 0)
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;
};