using QStringLiteral

This commit is contained in:
Uwe Rathmann 2022-03-25 10:32:14 +01:00
parent b1ac6fed57
commit c3eb20ee98
3 changed files with 4 additions and 4 deletions

View File

@ -114,8 +114,8 @@ namespace
static inline QskGradientStop qskToGradientStop( const QJSValue& value ) static inline QskGradientStop qskToGradientStop( const QJSValue& value )
{ {
return QskGradientStop( return QskGradientStop(
value.property( QLatin1String( "position" ) ).toNumber(), value.property( QStringLiteral( "position" ) ).toNumber(),
value.property( QLatin1String( "color" ) ).toVariant().value< QColor >() value.property( QStringLiteral( "color" ) ).toVariant().value< QColor >()
); );
} }

View File

@ -785,7 +785,7 @@ QskMaterialSkin::QskMaterialSkin( QObject* parent )
QskRgb::Blue500, QskRgb::White ); QskRgb::Blue500, QskRgb::White );
// Default theme colors // Default theme colors
setupFonts( "Roboto" ); setupFonts( QStringLiteral( "Roboto" ) );
auto buttonFont = font( QskSkin::DefaultFont ); auto buttonFont = font( QskSkin::DefaultFont );
buttonFont.setCapitalization( QFont::AllUppercase ); buttonFont.setCapitalization( QFont::AllUppercase );

View File

@ -941,7 +941,7 @@ QskSquiekSkin::QskSquiekSkin( QObject* parent )
: Inherited( parent ) : Inherited( parent )
, m_data( new PrivateData() ) , m_data( new PrivateData() )
{ {
setupFonts( "DejaVuSans" ); setupFonts( QStringLiteral( "DejaVuSans" ) );
Editor editor( &hintTable(), m_data->palette ); Editor editor( &hintTable(), m_data->palette );
editor.setup(); editor.setup();