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;
void tst_QGraphicsView::deepNesting()
{
QFETCH(bool, rotate);
- QFETCH(bool, sortCache);
QFETCH(bool, bsp);
QGraphicsScene scene;
}
}
scene.setItemIndexMethod(bsp ? QGraphicsScene::BspTreeIndex : QGraphicsScene::NoIndex);
- scene.setSortCacheEnabled(sortCache);
scene.setSceneRect(scene.sceneRect());
mView.setRenderHint(QPainter::Antialiasing);