diff options
author | Alessandro Portale <[email protected]> | 2022-07-18 18:50:26 +0200 |
---|---|---|
committer | Alessandro Portale <[email protected]> | 2022-07-21 10:25:06 +0000 |
commit | ee5ffafa45c616273148a16cd6a102e4b9b670f6 (patch) | |
tree | f7096a70a2a38096b862a277f01ea92c7dcdeb3f /src/plugins/qmlprojectmanager/qmlprojectplugin.cpp | |
parent | 1732c79fa5211b766a5b6f5dd654abea073f6439 (diff) |
QmlProjectManager: Improve font loading for the QDS landing page
The Titillium Web font comes in a QML module with FontLoader. Use that
instead of QFontDataBase, and retrieve the exact family name.
This also ensures that the font is loaded when editing the page in QDS
(if it is not loaded before e.g. by the QDS Welcome Screen).
Change-Id: I2cbec7fbc09fb4d4d31c513441c7cabbbbc5001d
Reviewed-by: Henning Gründl <[email protected]>
Diffstat (limited to 'src/plugins/qmlprojectmanager/qmlprojectplugin.cpp')
-rw-r--r-- | src/plugins/qmlprojectmanager/qmlprojectplugin.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp index 83e8fe4c479..a24beeebc4e 100644 --- a/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp +++ b/src/plugins/qmlprojectmanager/qmlprojectplugin.cpp @@ -266,7 +266,6 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage) d = new QmlProjectPluginPrivate; if (!qmlDesignerEnabled()) { - QFontDatabase::addApplicationFont(":/studiofonts/TitilliumWeb-Regular.ttf"); d->landingPage = new QdsLandingPage(); qmlRegisterSingletonInstance<QdsLandingPage>("LandingPageApi", 1, |