This shows the small icon in the system tray. More...
#include <systemtrayicon.h>
Public Member Functions | |
SystemTrayIcon (QWidget *parent, QIcon trayIcon, KAction *actionRefresh) | |
void | drawNumber (int n, const QColor &color) |
void | clear () |
void | showLooking () |
Protected Slots | |
void | slotFlash () |
Protected Member Functions | |
void | drawLooking () |
Private Attributes | |
QIcon | _icon |
QTimer * | flashingTimer |
bool | flasherFlag |
This shows the small icon in the system tray.
Definition at line 38 of file systemtrayicon.h.
SystemTrayIcon::SystemTrayIcon | ( | QWidget * | parent, | |
QIcon | trayIcon, | |||
KAction * | actionRefresh | |||
) |
Constructor
parent | parent widget
|
Definition at line 21 of file systemtrayicon.cpp.
void SystemTrayIcon::clear | ( | ) |
Clears the number from the icon
Definition at line 70 of file systemtrayicon.cpp.
void SystemTrayIcon::drawLooking | ( | ) | [protected] |
Draws a question mark
Definition at line 93 of file systemtrayicon.cpp.
void SystemTrayIcon::drawNumber | ( | int | n, | |
const QColor & | color | |||
) |
Draws the given number on the icon.
n | number to draw
|
Definition at line 39 of file systemtrayicon.cpp.
void SystemTrayIcon::showLooking | ( | ) |
Shows a flashing question mark
Definition at line 77 of file systemtrayicon.cpp.
void SystemTrayIcon::slotFlash | ( | ) | [protected, slot] |
Receives the timer event and depending on flasherFlag it calls drawLooking() or clears the icon.
Definition at line 118 of file systemtrayicon.cpp.
QIcon SystemTrayIcon::_icon [private] |
the icon
Definition at line 74 of file systemtrayicon.h.
bool SystemTrayIcon::flasherFlag [private] |
auxiliary flag for the flasher
TRUE - question mark is on; FALSE - question mark is off
Definition at line 85 of file systemtrayicon.h.
QTimer* SystemTrayIcon::flashingTimer [private] |
Timer to animate the ?
Definition at line 79 of file systemtrayicon.h.