mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-20 12:19:31 +02:00
Qt: set color of hint font so it shows hint text
git-svn-id: trunk@54302 -
This commit is contained in:
parent
f3708a5318
commit
3d28c2516b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user