Qt: fixed font assignment when parentFont=false and font is default one. issue #28437

git-svn-id: trunk@49730 -
This commit is contained in:
zeljko 2015-08-31 07:57:36 +00:00
parent 3c0233d4ed
commit cee72b713e

View File

@ -551,6 +551,11 @@ begin
Widget := TQtWidget(AWinControl.Handle);
Widget.BeginUpdate;
// issue #28437
if AWinControl.HandleObjectShouldBeVisible and not AWinControl.IsParentFont and
(AWinControl.Font.Name = 'default') then
SetFont(AWinControl, AWinControl.Font);
Widget.setVisible(AWinControl.HandleObjectShouldBeVisible);
Widget.EndUpdate;
end;