Skip to content
Permalink
Browse files

add StringLiteral

  • Loading branch information
signedav committed Apr 12, 2018
1 parent 254ceae commit a4b5816f0c14c60ffd455a617cf934a8c5182f5c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsconditionalstyle.cpp
@@ -293,13 +293,13 @@ bool QgsConditionalStyle::readXml( const QDomNode &node, const QgsReadWriteConte
setRule( styleElm.attribute( QStringLiteral( "rule" ) ) );
setName( styleElm.attribute( QStringLiteral( "name" ) ) );
QColor bColor = QColor( styleElm.attribute( QStringLiteral( "background_color" ) ) );
if ( styleElm.hasAttribute( "background_color_alpha" ) )
if ( styleElm.hasAttribute( QStringLiteral( "background_color_alpha" ) ) )
{
bColor.setAlpha( styleElm.attribute( QStringLiteral( "background_color_alpha" ) ).toInt() );
}
setBackgroundColor( bColor );
QColor tColor = QColor( styleElm.attribute( QStringLiteral( "text_color" ) ) );
if ( styleElm.hasAttribute( "text_color_alpha" ) )
if ( styleElm.hasAttribute( QStringLiteral( "text_color_alpha" ) ) )
{
tColor.setAlpha( styleElm.attribute( QStringLiteral( "text_color_alpha" ) ).toInt() );
}

0 comments on commit a4b5816

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