Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix debug messages about untranslated 'regular' font style
  • Loading branch information
nyalldawson committed Jul 27, 2018
1 parent f14ae46 commit a38db47
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/core/qgsfontutils.cpp
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 a38db47

Please sign in to comment.