mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 19:39:17 +02:00
Qt: unify setFont() behaviour with Qt5 patch. issue #36483
git-svn-id: trunk@62605 -
This commit is contained in:
parent
d2aee554cb
commit
d5d2ef28f5
@ -3132,8 +3132,9 @@ begin
|
|||||||
SelFont := AFont;
|
SelFont := AFont;
|
||||||
if (AFont.FHandle <> nil) and (Widget <> nil) then
|
if (AFont.FHandle <> nil) and (Widget <> nil) then
|
||||||
begin
|
begin
|
||||||
QFnt := QPainter_font(Widget);
|
QFnt := QFont_Create(AFont.FHandle);
|
||||||
AssignQtFont(AFont.FHandle, QFnt);
|
QPainter_setFont(Widget, QFnt);
|
||||||
|
QFont_destroy(QFnt);
|
||||||
vFont.Angle := AFont.Angle;
|
vFont.Angle := AFont.Angle;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user