Commit b7021f83 authored by Christian Stenger's avatar Christian Stenger

Fix compile with Qt5.5 on OSX

Broke with 05b5b616

Change-Id: I60c9c243ad858563e793663bb0ce2ffc960c7868
Reviewed-by: Alessandro Portale's avatarAlessandro Portale <alessandro.portale@qt.io>
parent 572b8749
......@@ -298,7 +298,8 @@ static const char *SHARE_PATH =
void loadFonts()
{
const QDir dir(QCoreApplication::applicationDirPath() + SHARE_PATH + "/fonts/");
const QDir dir(QCoreApplication::applicationDirPath() + QLatin1String(SHARE_PATH)
+ QLatin1String("/fonts/"));
foreach (const QFileInfo &fileInfo, dir.entryList(QStringList("*.ttf"), QDir::Files))
QFontDatabase::addApplicationFont(fileInfo.absoluteFilePath());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment