Qt: fixed hint changing of TTrayIcon. issue #29478

git-svn-id: trunk@51381 -
This commit is contained in:
zeljko 2016-01-22 21:55:42 +00:00
parent e47c74f7f7
commit a7f3bf4640

View File

@ -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;