Skip to content
Snippets Groups Projects
Commit e467827d authored by Alessandro Portale's avatar Alessandro Portale Committed by Thomas Hartmann
Browse files

App: Fix application font loading


QDir::entryList just returns file names as strings. In order to get the
full absolute paths of the font files, we need QFileInfos instead, which
dir.entryInfoList returns.

Change-Id: Ied0fb74afa4d02723d172f06d998a6916d5b0c9a
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@theqtcompany.com>
parent 62fe8fce
No related branches found
No related tags found
No related merge requests found
......@@ -301,7 +301,7 @@ void loadFonts()
const QDir dir(QCoreApplication::applicationDirPath() + QLatin1String(SHARE_PATH)
+ QLatin1String("/fonts/"));
foreach (const QFileInfo &fileInfo, dir.entryList(QStringList("*.ttf"), QDir::Files))
foreach (const QFileInfo &fileInfo, dir.entryInfoList(QStringList("*.ttf"), QDir::Files))
QFontDatabase::addApplicationFont(fileInfo.absoluteFilePath());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment