mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Make symbol line fill tests more robust
This commit is contained in:
parent
11c82045b7
commit
711c38dfaf
@ -139,7 +139,7 @@ void TestQgsLineFillSymbol::lineFillSymbol()
|
||||
|
||||
QgsStringMap properties;
|
||||
properties.insert( "color", "0,0,0,255" );
|
||||
properties.insert( "width", "0.3" );
|
||||
properties.insert( "width", "1" );
|
||||
properties.insert( "capstyle", "flat" );
|
||||
QgsLineSymbolV2* lineSymbol = QgsLineSymbolV2::createSimple( properties );
|
||||
|
||||
@ -153,7 +153,7 @@ void TestQgsLineFillSymbol::dataDefinedSubSymbol()
|
||||
|
||||
QgsStringMap properties;
|
||||
properties.insert( "color", "0,0,0,255" );
|
||||
properties.insert( "width", "0.3" );
|
||||
properties.insert( "width", "1" );
|
||||
properties.insert( "capstyle", "flat" );
|
||||
QgsLineSymbolV2* lineSymbol = QgsLineSymbolV2::createSimple( properties );
|
||||
lineSymbol->symbolLayer( 0 )->setDataDefinedProperty( "color", new QgsDataDefined( QString( "if(\"Name\" ='Lake','#ff0000','#ff00ff')" ) ) );
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 626 KiB After Width: | Height: | Size: 7.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 626 KiB After Width: | Height: | Size: 7.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 4.2 KiB |
Loading…
x
Reference in New Issue
Block a user