mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 19:29:31 +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;
|
||||
if (AFont.FHandle <> nil) and (Widget <> nil) then
|
||||
begin
|
||||
QFnt := QPainter_font(Widget);
|
||||
AssignQtFont(AFont.FHandle, QFnt);
|
||||
QFnt := QFont_Create(AFont.FHandle);
|
||||
QPainter_setFont(Widget, QFnt);
|
||||
QFont_destroy(QFnt);
|
||||
vFont.Angle := AFont.Angle;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user