OSDN Git Service

adjust some tests to recent changes
authorIvailo Monev <xakepa10@gmail.com>
Fri, 22 Jul 2016 22:28:18 +0000 (22:28 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Fri, 22 Jul 2016 22:28:18 +0000 (22:28 +0000)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
tests/benchmarks/gui/graphicsview/functional/GraphicsViewBenchmark/widgets/mainview.cpp
tests/benchmarks/gui/graphicsview/qgraphicsview/tst_qgraphicsview.cpp

index 22eea75..021c848 100644 (file)
@@ -265,7 +265,6 @@ void MainView::construct()
 #ifndef QT_NO_OPENGL
     if (m_enableOpenGL) {
         qDebug() << "OpenGL enabled";
-        m_scene->setSortCacheEnabled(false);        
         setViewport(new QGLWidget);
 
         // Qt doc says: This is the preferred update mode for
index f2ba8ad..cf72645 100644 (file)
@@ -446,7 +446,6 @@ static void addChildHelper(QGraphicsItem *parent, int n, bool rotate)
 void tst_QGraphicsView::deepNesting_data()
 {
     QTest::addColumn<bool>("rotate");
-    QTest::addColumn<bool>("sortCache");
     QTest::addColumn<bool>("bsp");
 
     QTest::newRow("bsp, no transform") << false << false << true;
@@ -462,7 +461,6 @@ void tst_QGraphicsView::deepNesting_data()
 void tst_QGraphicsView::deepNesting()
 {
     QFETCH(bool, rotate);
-    QFETCH(bool, sortCache);
     QFETCH(bool, bsp);
 
     QGraphicsScene scene;
@@ -475,7 +473,6 @@ void tst_QGraphicsView::deepNesting()
         }
     }
     scene.setItemIndexMethod(bsp ? QGraphicsScene::BspTreeIndex : QGraphicsScene::NoIndex);
-    scene.setSortCacheEnabled(sortCache);
     scene.setSceneRect(scene.sceneRect());
 
     mView.setRenderHint(QPainter::Antialiasing);