Skip to content
Permalink
Browse files
Consider alpha value for annotation rectangle in QGIS server
  • Loading branch information
mhugent committed Nov 27, 2012
1 parent dbd849f commit 4a44daa5c4d0dfc915faac6e5dcc2fb338113be5
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/mapserver/qgsprojectparser.cpp
@@ -2703,7 +2703,9 @@ void QgsProjectParser::drawAnnotationRectangle( QPainter* p, const QDomElement&
QColor backgroundColor( elem.attribute( "frameBackgroundColor", "#000000" ) );
backgroundColor.setAlpha( elem.attribute( "frameBackgroundColorAlpha", "255" ).toInt() );
p->setBrush( QBrush( backgroundColor ) );
QPen framePen( QColor( elem.attribute( "frameColor", "#000000" ) ) );
QColor frameColor( elem.attribute( "frameColor", "#000000" ) );
frameColor.setAlpha( elem.attribute( "frameColorAlpha", "255" ).toInt() );
QPen framePen( frameColor );
framePen.setWidth( elem.attribute( "frameBorderWidth", "1" ).toInt() );
p->setPen( framePen );

0 comments on commit 4a44daa

Please sign in to comment.