setIcon(<image_id>). |
Sets the tray icon. See the image identifier documentation for the explanation of the <image_id> parameter. |
setTooltip(<tooltip:string>). |
Sets the tray icon tooltip. |
show() |
Shows the tray icon. |
hide() |
Hides the tray icon. |
isVisible() |
Returns '1' if the tray icon is currently visible. |
showMessage(<title:string>,<message:string>,<message_icon:string>,<timeout:integer>) |
Shows a balloon message for the entry with the given title, message and message_icon for the time specified in millisecondsTimeoutHint. title and message must be plain text strings. Message can be clicked by the user; the messageClickedEvent() will be triggered when this occurs. Valid values for message_icon are: - NoIcon : No icon is shown. - Information : An information icon is shown. - Warning : A standard warning icon is shown. - Critical : A critical warning icon is shown.
|
setContextMenu(<popupmenu:hobject>). |
Associates the given <popupmenu> with the tray icon. |
activatedEvent(<reason:string>) |
This event is triggered when the user click the tray icon. If you reimplement this function the reason parameter will be passed as $0. Values for reason are: - Unknown : Unknown reason. - Context : The context menu for the tray icon was requested. - DoubleClick : The tray icon was double clicked. - Trigger : The tray icon was clicked. - MiddleClick : The tray icon was clicked with the middle mouse button. The default implementation emits the $activated() signal. |
messageClickedEvent() |
This event is triggered when the message displayed using $showMessage() was clicked by the user. The default implementation emits the $messageClicked() signal. |