Skip to content
Permalink
Browse files

#8725-R: fix old API in other test cpp files

  • Loading branch information
ahuarte47 authored and m-kuhn committed Jan 15, 2014
1 parent 062c1e4 commit 1e781ff83868fcc7e466aeb18085d31815f49dd5
Showing with 11 additions and 3 deletions.
  1. +3 −1 tests/src/core/testqgsatlascomposition.cpp
  2. +8 −2 tests/src/core/testqgsgradients.cpp
@@ -80,7 +80,9 @@ void TestQgsAtlasComposition::initTestCase()
vectorFileInfo.completeBaseName(),
"ogr" );

mVectorLayer->setSimplifyDrawingHints( QgsVectorLayer::NoSimplification );
QgsVectorSimplifyMethod simplifyMethod;
simplifyMethod.setSimplifyHints( QgsVectorLayer::NoSimplification );
mVectorLayer->setSimplifyMethod( simplifyMethod );

QgsMapLayerRegistry::instance()->addMapLayers( QList<QgsMapLayer*>() << mVectorLayer );

@@ -94,7 +94,11 @@ void TestQgsGradients::initTestCase()
QFileInfo myPolyFileInfo( myPolysFileName );
mpPolysLayer = new QgsVectorLayer( myPolyFileInfo.filePath(),
myPolyFileInfo.completeBaseName(), "ogr" );
mpPolysLayer->setSimplifyDrawingHints( QgsVectorLayer::NoSimplification );

QgsVectorSimplifyMethod simplifyMethod;
simplifyMethod.setSimplifyHints( QgsVectorLayer::NoSimplification );
mpPolysLayer->setSimplifyMethod( simplifyMethod );

// Register the layer with the registry
QgsMapLayerRegistry::instance()->addMapLayers(
QList<QgsMapLayer *>() << mpPolysLayer );
@@ -245,7 +249,9 @@ void TestQgsGradients::gradientSymbolFromQml()
{
mReport += "<h2>Gradient symbol from QML test</h2>\n";
QVERIFY( setQml( "gradient" ) );
mpPolysLayer->setSimplifyDrawingHints( QgsVectorLayer::NoSimplification );
QgsVectorSimplifyMethod simplifyMethod;
simplifyMethod.setSimplifyHints( QgsVectorLayer::NoSimplification );
mpPolysLayer->setSimplifyMethod( simplifyMethod );
QVERIFY( imageCheck( "gradient_from_qml" ) );
}

0 comments on commit 1e781ff

Please sign in to comment.
You can’t perform that action at this time.