Skip to content
Permalink
Browse files

Fix build

  • Loading branch information
nyalldawson committed Nov 13, 2020
1 parent 1936fa0 commit 7100c9ddc21231f3f76692fcb78dce3e24816374
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/core/testqgsvectorlayer.cpp
@@ -260,14 +260,14 @@ void TestQgsVectorLayer::setFeatureBlendMode()

mpPointsLayer->setFeatureBlendMode( QPainter::CompositionMode_Screen );
QCOMPARE( spy.count(), 1 );
QCOMPARE( spy.at( 0 ).at( 0 ).toInt(), QPainter::CompositionMode_Screen );
QCOMPARE( spy.at( 0 ).at( 0 ).toInt(), static_cast< int >( QPainter::CompositionMode_Screen ) );
QCOMPARE( mpPointsLayer->featureBlendMode(), QPainter::CompositionMode_Screen );
mpPointsLayer->setFeatureBlendMode( QPainter::CompositionMode_Screen );
QCOMPARE( spy.count(), 1 );

mpPointsLayer->setFeatureBlendMode( QPainter::CompositionMode_Darken );
QCOMPARE( spy.count(), 2 );
QCOMPARE( spy.at( 1 ).at( 0 ).toInt(), QPainter::CompositionMode_Darken );
QCOMPARE( spy.at( 1 ).at( 0 ).toInt(), static_cast< int >( QPainter::CompositionMode_Darken ) );
QCOMPARE( mpPointsLayer->featureBlendMode(), QPainter::CompositionMode_Darken );
}

0 comments on commit 7100c9d

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