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 062c1e411a01c1598ab19a5f171183ea7f10e1d9
Showing with 6 additions and 2 deletions.
  1. +6 −2 tests/src/core/testqgsblendmodes.cpp
@@ -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.
You can’t perform that action at this time.