mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 07:59:44 +02:00
Qt: fixed font assignment when parentFont=false and font is default one. issue #28437
git-svn-id: trunk@49730 -
This commit is contained in:
parent
3c0233d4ed
commit
cee72b713e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user