2009-12-24 20:16:07 +01:00
|
|
|
#ifndef SYSTEMTRAYICON_H
|
|
|
|
#define SYSTEMTRAYICON_H
|
|
|
|
|
|
|
|
#include <QSystemTrayIcon>
|
|
|
|
|
|
|
|
class SystemTrayIcon : public QSystemTrayIcon {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
SystemTrayIcon(QObject* parent = 0);
|
2010-02-14 01:37:44 +01:00
|
|
|
virtual ~SystemTrayIcon();
|
2009-12-24 20:16:07 +01:00
|
|
|
|
2010-02-14 01:37:44 +01:00
|
|
|
virtual bool event(QEvent* event);
|
2009-12-24 20:16:07 +01:00
|
|
|
|
2010-01-17 22:11:03 +01:00
|
|
|
public slots:
|
|
|
|
void SetProgress(int percentage);
|
|
|
|
|
2009-12-24 20:16:07 +01:00
|
|
|
signals:
|
|
|
|
void WheelEvent(int delta);
|
2010-01-17 22:11:03 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
QPixmap icon_;
|
|
|
|
QPixmap grey_icon_;
|
2009-12-24 20:16:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SYSTEMTRAYICON_H
|