Qt: set color of hint font so it shows hint text

git-svn-id: trunk@54302 -
This commit is contained in:
zeljko 2017-02-28 07:59:35 +00:00
parent f3708a5318
commit 3d28c2516b

View File

@ -4851,7 +4851,6 @@ var
AName: WideString;
begin
Result := False;
exit; // exit for now since there''s bug with THintWindow.Font
if AStockFont = sfMenu then
begin
AName := 'MenuTitle';
@ -4872,6 +4871,7 @@ begin
Font.Style := Font.Style + [fsUnderline];
if QFont_strikeOut(QtFont) then
Font.Style := Font.Style + [fsStrikeOut];
Font.Color := clMenuText;
Result := True;
finally
QWidget_destroy(AMenu);
@ -4898,6 +4898,11 @@ begin
Font.Style := Font.Style + [fsUnderline];
if QFont_strikeOut(QtFont) then
Font.Style := Font.Style + [fsStrikeOut];
{comment font.color for check if hintfont works correct}
if AStockFont = sfHint then
Font.Color := clInfoText;
Result := True;
finally
QFont_destroy(QtFont);