#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 () |
Definition at line 38 of file systemtrayicon.h.
SystemTrayIcon::SystemTrayIcon | ( | QWidget * | parent, | |
QIcon | trayIcon, | |||
KAction * | actionRefresh | |||
) |
Constructor
parent | parent widget | |
trayIcon | icon | |
actionRefresh | refresh action |
Definition at line 21 of file systemtrayicon.cpp.
void SystemTrayIcon::drawNumber | ( | int | n, | |
const QColor & | color | |||
) |
Draws the given number on the icon.
n | number to draw | |
color | color |
Definition at line 39 of file systemtrayicon.cpp.
void SystemTrayIcon::clear | ( | ) |
Clears the number from the icon
Definition at line 70 of file systemtrayicon.cpp.
void SystemTrayIcon::showLooking | ( | ) |
Shows a flashing question mark
Definition at line 77 of file systemtrayicon.cpp.
void SystemTrayIcon::drawLooking | ( | ) | [protected] |
Draws a question mark
Definition at line 93 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.