Public Slots | |
void | setIcon (const QPixmap &icon) |
void | setToolTip (const QString &tip) |
void | show () |
void | hide () |
Signals | |
void | clicked (const QPoint &, int) |
void | doubleClicked (const QPoint &) |
void | closed () |
Public Member Functions | |
TrayIcon (QWidget *parent=0, const char *name=0) | |
TrayIcon (const QPixmap &, const QString &, QPopupMenu *popup=0, QWidget *parent=0, const char *name=0) | |
~TrayIcon () | |
void | setWMDock (bool use) |
bool | isWMDock () |
void | setPopup (QPopupMenu *) |
QPopupMenu * | popup () const |
QPixmap | icon () const |
QString | toolTip () const |
void | gotCloseEvent () |
Protected Member Functions | |
bool | event (QEvent *) |
virtual void | mouseMoveEvent (QMouseEvent *e) |
virtual void | mousePressEvent (QMouseEvent *e) |
virtual void | mouseReleaseEvent (QMouseEvent *e) |
virtual void | mouseDoubleClickEvent (QMouseEvent *e) |
Properties | |
QString | toolTip |
the tooltip for the system tray entry | |
QPixmap | icon |
the system tray icon. |
|
Creates a TrayIcon object. parent and name are propagated to the QObject constructor. The icon is initially invisible.
|
|
Creates a TrayIcon object displaying icon and tooltip, and opening popup when clicked with the right mousebutton. parent and name are propagated to the QObject constructor. The icon is initially invisible.
|
|
Removes the icon from the system tray and frees all allocated resources. |
|
This signal is emitted when the user double clicks the system tray icon with the left mouse button, with p being the global mouse position at that moment. |
|
|
|
Hides the system tray entry. |
|
This event handler can be reimplemented in a subclass to receive mouse double click events for the system tray entry. Note that the system tray entry gets a mousePressEvent() and a mouseReleaseEvent() before the mouseDoubleClickEvent().
|
|
This event handler can be reimplemented in a subclass to receive mouse move events for the system tray entry.
|
|
This event handler can be reimplemented in a subclass to receive mouse press events for the system tray entry.
|
|
This event handler can be reimplemented in a subclass to receive mouse release events for the system tray entry. The default implementations opens the context menu when the entry has been clicked with the right mouse button.
|
|
Returns the current popup menu.
|
|
Sets the context menu to popup. The context menu will pop up when the user clicks the system tray entry with the right mouse button. |
|
Shows the icon in the system tray.
|
|
the tooltip for the system tray entry On some systems, the tooltip's length is limited and will be truncated as necessary. |