Skip to content
Permalink
Browse files
#8725-R: fix old API in testqgsblendmodes.cpp
  • Loading branch information
ahuarte47 authored and m-kuhn committed Jan 15, 2014
1 parent e40a23a commit 062c1e4
Showing 1 changed file with 6 additions and 2 deletions.
@@ -85,7 +85,11 @@ void TestQgsBlendModes::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 );
QgsMapLayerRegistry::instance()->addMapLayers(
QList<QgsMapLayer *>() << mpPolysLayer );

@@ -94,7 +98,7 @@ void TestQgsBlendModes::initTestCase()
QFileInfo myLineFileInfo( myLinesFileName );
mpLinesLayer = new QgsVectorLayer( myLineFileInfo.filePath(),
myLineFileInfo.completeBaseName(), "ogr" );
mpLinesLayer->setSimplifyDrawingHints( QgsVectorLayer::NoSimplification );
mpLinesLayer->setSimplifyMethod( simplifyMethod );
QgsMapLayerRegistry::instance()->addMapLayers(
QList<QgsMapLayer *>() << mpLinesLayer );

0 comments on commit 062c1e4

Please sign in to comment.