iOS: initialize font traits

Silences build-breaking compiler warning and probably fixes a bug.

Pick-to: 6.4 6.2
Change-Id: Ice48657831ac1f8406f33ca7e3afa70556831274
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Volker Hilsheimer 2022-12-12 16:53:01 +01:00
parent 82601c1205
commit 54f7cd34a1

View File

@ -22,7 +22,7 @@
{
UIFontPickerViewControllerConfiguration *configuration = [[UIFontPickerViewControllerConfiguration alloc] init];
if (dialog->options()->testOption(QFontDialogOptions::MonospacedFonts)) {
UIFontDescriptorSymbolicTraits traits;
UIFontDescriptorSymbolicTraits traits = {};
traits |= UIFontDescriptorTraitMonoSpace;
configuration.filteredTraits = traits;
}