Skip to content

Commit 366e371

Browse files
committedJul 28, 2018
Fix debug messages about untranslated 'regular' font style
(cherry-picked from a38db47)
1 parent cbb6838 commit 366e371

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎src/core/qgsfontutils.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,15 @@ QFont QgsFontUtils::fromMimeData( const QMimeData *data, bool *ok )
410410
static QMap<QString, QString> createTranslatedStyleMap()
411411
{
412412
QMap<QString, QString> translatedStyleMap;
413-
QStringList words = QStringList() << QStringLiteral( "Normal" ) << QStringLiteral( "Light" ) << QStringLiteral( "Bold" ) << QStringLiteral( "Black" ) << QStringLiteral( "Demi" ) << QStringLiteral( "Italic" ) << QStringLiteral( "Oblique" );
413+
QStringList words = QStringList()
414+
<< QStringLiteral( "Normal" )
415+
<< QStringLiteral( "Regular" )
416+
<< QStringLiteral( "Light" )
417+
<< QStringLiteral( "Bold" )
418+
<< QStringLiteral( "Black" )
419+
<< QStringLiteral( "Demi" )
420+
<< QStringLiteral( "Italic" )
421+
<< QStringLiteral( "Oblique" );
414422
Q_FOREACH ( const QString &word, words )
415423
{
416424
translatedStyleMap.insert( QCoreApplication::translate( "QFontDatabase", qPrintable( word ) ), word );

0 commit comments

Comments
 (0)
Please sign in to comment.