mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 18:20:00 +02:00
Qt: fixed hint changing of TTrayIcon. issue #29478
git-svn-id: trunk@51381 -
This commit is contained in:
parent
e47c74f7f7
commit
a7f3bf4640
@ -303,6 +303,7 @@ class procedure TQtWSCustomTrayIcon.InternalUpdate(const ATrayIcon: TCustomTrayI
|
||||
var
|
||||
SystemTrayIcon: TQtSystemTrayIcon;
|
||||
AIcon: QIconH;
|
||||
AHint: WideString;
|
||||
begin
|
||||
if (ATrayIcon.Handle = 0) then Exit;
|
||||
|
||||
@ -335,6 +336,9 @@ begin
|
||||
if TQtMenu(ATrayIcon.PopUpMenu.Handle).Widget <> nil then
|
||||
SystemTrayIcon.setContextMenu(QMenuH(TQtMenu(ATrayIcon.PopUpMenu.Handle).Widget));
|
||||
|
||||
AHint := UTF8ToUTF16(ATrayIcon.Hint);
|
||||
SystemTrayIcon.setToolTip(AHint);
|
||||
|
||||
SystemTrayIcon.UpdateSystemTrayWidget;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user