mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 03:42:01 +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
|
var
|
||||||
SystemTrayIcon: TQtSystemTrayIcon;
|
SystemTrayIcon: TQtSystemTrayIcon;
|
||||||
AIcon: QIconH;
|
AIcon: QIconH;
|
||||||
|
AHint: WideString;
|
||||||
begin
|
begin
|
||||||
if (ATrayIcon.Handle = 0) then Exit;
|
if (ATrayIcon.Handle = 0) then Exit;
|
||||||
|
|
||||||
@ -335,6 +336,9 @@ begin
|
|||||||
if TQtMenu(ATrayIcon.PopUpMenu.Handle).Widget <> nil then
|
if TQtMenu(ATrayIcon.PopUpMenu.Handle).Widget <> nil then
|
||||||
SystemTrayIcon.setContextMenu(QMenuH(TQtMenu(ATrayIcon.PopUpMenu.Handle).Widget));
|
SystemTrayIcon.setContextMenu(QMenuH(TQtMenu(ATrayIcon.PopUpMenu.Handle).Widget));
|
||||||
|
|
||||||
|
AHint := UTF8ToUTF16(ATrayIcon.Hint);
|
||||||
|
SystemTrayIcon.setToolTip(AHint);
|
||||||
|
|
||||||
SystemTrayIcon.UpdateSystemTrayWidget;
|
SystemTrayIcon.UpdateSystemTrayWidget;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user