Skip to content
Permalink
Browse files

Fix debug messages about untranslated 'regular' font style

  • Loading branch information
nyalldawson committed Jul 27, 2018
1 parent f14ae46 commit a38db47a6e702327e005fdd08acb67e48f4a5f4b
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/core/qgsfontutils.cpp
@@ -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 );

0 comments on commit a38db47

Please sign in to comment.
You can’t perform that action at this time.