forked from qt-creator/qt-creator
StudioWelcome: Use TitilliumWeb as application font
If the plugin is enabled we use TitilliumWeb as application font. Change-Id: I8688c8c790705ac0d0556713319fe5b9079b5ce8 Reviewed-by: Brook Cronin <brook.cronin@qt.io> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -189,6 +189,12 @@ bool StudioWelcomePlugin::initialize(const QStringList &arguments, QString *erro
|
|||||||
qmlRegisterType<ProjectModel>("projectmodel", 1, 0, "ProjectModel");
|
qmlRegisterType<ProjectModel>("projectmodel", 1, 0, "ProjectModel");
|
||||||
|
|
||||||
m_welcomeMode = new WelcomeMode;
|
m_welcomeMode = new WelcomeMode;
|
||||||
|
|
||||||
|
QFontDatabase fonts;
|
||||||
|
QFontDatabase::addApplicationFont(":/studiofonts/TitilliumWeb-Regular.ttf");
|
||||||
|
QFont systemFont("Titillium Web", QApplication::font().pointSize());
|
||||||
|
QApplication::setFont(systemFont);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user