mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Tweak default symbol for overviews
This commit is contained in:
parent
aa2b73d425
commit
332a69cece
@ -38,11 +38,10 @@ QgsLayoutItemMapOverview::QgsLayoutItemMapOverview( const QString &name, QgsLayo
|
||||
void QgsLayoutItemMapOverview::createDefaultFrameSymbol()
|
||||
{
|
||||
QgsStringMap properties;
|
||||
properties.insert( QStringLiteral( "color" ), QStringLiteral( "255,0,0,255" ) );
|
||||
properties.insert( QStringLiteral( "color" ), QStringLiteral( "255,0,0,75" ) );
|
||||
properties.insert( QStringLiteral( "style" ), QStringLiteral( "solid" ) );
|
||||
properties.insert( QStringLiteral( "style_border" ), QStringLiteral( "no" ) );
|
||||
mFrameSymbol.reset( QgsFillSymbol::createSimple( properties ) );
|
||||
mFrameSymbol->setOpacity( 0.3 );
|
||||
}
|
||||
|
||||
void QgsLayoutItemMapOverview::draw( QPainter *painter )
|
||||
|
@ -84,6 +84,7 @@ class TestQgsComposerMap(unittest.TestCase):
|
||||
overviewMap.setExtent(myRectangle2)
|
||||
overviewMap.overview().setFrameMap(self.map)
|
||||
checker = QgsLayoutChecker('composermap_overview', self.layout)
|
||||
checker.setColorTolerance(6)
|
||||
checker.setControlPathPrefix("composer_mapoverview")
|
||||
myTestResult, myMessage = checker.testLayout()
|
||||
self.layout.removeLayoutItem(overviewMap)
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
Loading…
x
Reference in New Issue
Block a user