Skip to content

Commit

Permalink
Fix debug messages about untranslated 'regular' font style
Browse files Browse the repository at this point in the history
(cherry-picked from a38db47)
  • Loading branch information
nyalldawson committed Jul 28, 2018
1 parent cbb6838 commit 366e371
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/core/qgsfontutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,15 @@ QFont QgsFontUtils::fromMimeData( const QMimeData *data, bool *ok )
static QMap<QString, QString> createTranslatedStyleMap()
{
QMap<QString, QString> translatedStyleMap;
QStringList words = QStringList() << QStringLiteral( "Normal" ) << QStringLiteral( "Light" ) << QStringLiteral( "Bold" ) << QStringLiteral( "Black" ) << QStringLiteral( "Demi" ) << QStringLiteral( "Italic" ) << QStringLiteral( "Oblique" );
QStringList words = QStringList()
<< QStringLiteral( "Normal" )
<< QStringLiteral( "Regular" )
<< QStringLiteral( "Light" )
<< QStringLiteral( "Bold" )
<< QStringLiteral( "Black" )
<< QStringLiteral( "Demi" )
<< QStringLiteral( "Italic" )
<< QStringLiteral( "Oblique" );
Q_FOREACH ( const QString &word, words )
{
translatedStyleMap.insert( QCoreApplication::translate( "QFontDatabase", qPrintable( word ) ), word );
Expand Down

0 comments on commit 366e371

Please sign in to comment.