diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-11-25 14:00:11 +0100 |
---|---|---|
committer | Andy Shaw <andy.shaw@qt.io> | 2020-11-30 07:36:07 +0100 |
commit | e32947d25245bdf5ca9b969e82c4e66de48957bb (patch) | |
tree | 4eaef81431c370d1c39d340a6a79144f82155315 /src/imports/controls/imagine | |
parent | 198db199e5e9f7f6bf8c2a8fdd870d46c5615256 (diff) |
Make adjustments for using QFont::setFamilies()
Since we only depend on using setFamilies() now instead of setFamily()
then we can rely on the fact that it will be resolved correctly, so we
can remove the code that was ensuring that family() would take
precedence if families() was empty.
Change-Id: Iea1464ec840dc76c04a4acae445cab367e03d3ca
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/imports/controls/imagine')
-rw-r--r-- | src/imports/controls/imagine/qquickimaginetheme.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/controls/imagine/qquickimaginetheme.cpp b/src/imports/controls/imagine/qquickimaginetheme.cpp index a9722fa5..7bae036a 100644 --- a/src/imports/controls/imagine/qquickimaginetheme.cpp +++ b/src/imports/controls/imagine/qquickimaginetheme.cpp @@ -43,7 +43,7 @@ QT_BEGIN_NAMESPACE void QQuickImagineTheme::initialize(QQuickTheme *theme) { QFont systemFont; - systemFont.setFamily(QLatin1String("Open Sans")); + systemFont.setFamilies(QStringList{QLatin1String("Open Sans")}); theme->setFont(QQuickTheme::System, systemFont); const QColor accentColor = QColor::fromRgb(0x4fc1e9); |