Skip to content

Commit 062c1e4

Browse files
ahuarte47m-kuhn
authored andcommitted
#8725-R: fix old API in testqgsblendmodes.cpp
1 parent e40a23a commit 062c1e4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/src/core/testqgsblendmodes.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ void TestQgsBlendModes::initTestCase()
8585
QFileInfo myPolyFileInfo( myPolysFileName );
8686
mpPolysLayer = new QgsVectorLayer( myPolyFileInfo.filePath(),
8787
myPolyFileInfo.completeBaseName(), "ogr" );
88-
mpPolysLayer->setSimplifyDrawingHints( QgsVectorLayer::NoSimplification );
88+
89+
QgsVectorSimplifyMethod simplifyMethod;
90+
simplifyMethod.setSimplifyHints( QgsVectorLayer::NoSimplification );
91+
92+
mpPolysLayer->setSimplifyMethod( simplifyMethod );
8993
QgsMapLayerRegistry::instance()->addMapLayers(
9094
QList<QgsMapLayer *>() << mpPolysLayer );
9195

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

0 commit comments

Comments
 (0)