From 0622cb603869484c93acf6369965ec2eabd9ef6f Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Mon, 11 Nov 2019 15:38:21 +0100 Subject: Amend d1fec8f050fc8f60b2cc2bf0e22a1e478f0e9048 to account for the theme Fixes: QTBUG-79929 Change-Id: I153684fa9c4e40d220986391671b0945b66393e1 Reviewed-by: Mitch Curtis --- src/quicktemplates2/qquicktheme.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/quicktemplates2/qquicktheme.cpp b/src/quicktemplates2/qquicktheme.cpp index af49ffc9..1228714b 100644 --- a/src/quicktemplates2/qquicktheme.cpp +++ b/src/quicktemplates2/qquicktheme.cpp @@ -167,6 +167,8 @@ void QQuickTheme::setFont(Scope scope, const QFont &font) { Q_D(QQuickTheme); d->fonts[scope] = QSharedPointer::create(d->defaultFont ? d->defaultFont->resolve(font) : font); + // See comment in QQuickControlPrivate::inheritFont + d->fonts[scope]->setFamilies(QStringList()); } void QQuickTheme::setPalette(Scope scope, const QPalette &palette) -- cgit v1.2.3