--- a/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp Tue Jul 06 15:10:48 2010 +0300
+++ b/tests/auto/qgraphicssceneindex/tst_qgraphicssceneindex.cpp Wed Aug 18 10:37:55 2010 +0300
@@ -224,7 +224,18 @@
{
class MyScene : public QGraphicsScene
- { public: using QGraphicsScene::receivers; };
+ {
+ public:
+#ifdef Q_CC_RVCT
+ //using keyword doesn't change visibility to public in RVCT2.2 compiler
+ inline int receivers(const char* signal) const
+ {
+ return QGraphicsScene::receivers(signal);
+ }
+#else
+ using QGraphicsScene::receivers;
+#endif
+ };
MyScene scene; // Uses QGraphicsSceneBspTreeIndex by default.
QCOMPARE(scene.receivers(SIGNAL(sceneRectChanged(const QRectF&))), 1);