add StringLiteral

This commit is contained in:
David 2018-04-12 13:53:16 +02:00
parent 254ceae91a
commit a4b5816f0c

View File

@ -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() );
}