#include <trayicon.h>
Inheritance diagram for TrayIcon:
Signals | |
| void | doubleClicked () |
Public Member Functions | |
| TrayIcon (const QString &iconFile, const QString &toolTip, QMenu *popupMenu=0) | |
| void | show () |
| void | hide () |
| void | update (const QString &iconFile, const QString &toolTip) |
| void | setToolTip (const QString &toolTip) |
| void | setIcon (const QString &iconFile) |
Protected Member Functions | |
| bool | event (QEvent *) |
| void | mouseButtonPress (QMouseEvent *event) |
| void | mouseButtonRelease (QMouseEvent *event) |
| void | mouseButtonDblClick (QMouseEvent *event) |
Private Attributes | |
| QMenu * | _popupMenu |
Definition at line 46 of file trayicon.h.
| TrayIcon::TrayIcon | ( | const QString & | iconFile, | |
| const QString & | toolTip, | |||
| QMenu * | popupMenu = 0 | |||
| ) |
| void TrayIcon::show | ( | ) |
Show the tray icon.
Reimplemented from TrayIconImpl.
Definition at line 114 of file trayicon.cpp.
References TrayIconImpl::show().
Referenced by MainWindow::MainWindow().
| void TrayIcon::hide | ( | ) |
Hide the tray icon.
Reimplemented from TrayIconImpl.
Definition at line 121 of file trayicon.cpp.
References TrayIconImpl::hide().
Referenced by MainWindow::~MainWindow().
| void TrayIcon::update | ( | const QString & | iconFile, | |
| const QString & | toolTip | |||
| ) |
Updates the icon image and tooltip.
Definition at line 106 of file trayicon.cpp.
References setIcon(), and setToolTip().
Referenced by MainWindow::connected(), MainWindow::initiateServerShutdown(), MainWindow::started(), MainWindow::stop(), and MainWindow::stopped().
| void TrayIcon::setToolTip | ( | const QString & | toolTip | ) |
Update the tray icon's tooltip.
Reimplemented from TrayIconImpl.
Definition at line 128 of file trayicon.cpp.
References TrayIconImpl::setToolTip().
Referenced by update().
| void TrayIcon::setIcon | ( | const QString & | iconFile | ) |
Update the tray icon's image.
Reimplemented from TrayIconImpl.
Definition at line 135 of file trayicon.cpp.
References TrayIconImpl::setIcon().
Referenced by update().
| void TrayIcon::doubleClicked | ( | ) | [signal] |
Emitted when the user double-clicks on the tray icon.
Referenced by mouseButtonDblClick().
| bool TrayIcon::event | ( | QEvent * | ) | [protected] |
Override's QObject' event() method to catch mouse-related events.
Definition at line 39 of file trayicon.cpp.
References mouseButtonDblClick(), mouseButtonPress(), and mouseButtonRelease().
| void TrayIcon::mouseButtonPress | ( | QMouseEvent * | event | ) | [protected] |
Respond to a mouse button being pressed.
Definition at line 64 of file trayicon.cpp.
References _popupMenu.
Referenced by event().
| void TrayIcon::mouseButtonRelease | ( | QMouseEvent * | event | ) | [protected] |
Respond to a mouse button being released.
Definition at line 78 of file trayicon.cpp.
References _popupMenu.
Referenced by event().
| void TrayIcon::mouseButtonDblClick | ( | QMouseEvent * | event | ) | [protected] |
Respond to a mouse button being double-clicked.
Definition at line 97 of file trayicon.cpp.
References doubleClicked().
Referenced by event().
QMenu* TrayIcon::_popupMenu [private] |
Menu to display when the tray icon is clicked.
Definition at line 80 of file trayicon.h.
Referenced by mouseButtonPress(), mouseButtonRelease(), and TrayIcon().
1.5.1