mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-25 00:03:06 -04:00
add StringLiteral
This commit is contained in:
parent
254ceae91a
commit
a4b5816f0c
@ -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() );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user