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:
parent
82601c1205
commit
54f7cd34a1
@ -22,7 +22,7 @@
|
||||
{
|
||||
UIFontPickerViewControllerConfiguration *configuration = [[UIFontPickerViewControllerConfiguration alloc] init];
|
||||
if (dialog->options()->testOption(QFontDialogOptions::MonospacedFonts)) {
|
||||
UIFontDescriptorSymbolicTraits traits;
|
||||
UIFontDescriptorSymbolicTraits traits = {};
|
||||
traits |= UIFontDescriptorTraitMonoSpace;
|
||||
configuration.filteredTraits = traits;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user