Clementine-audio-player-Mac.../src/systemtrayicon.h

27 lines
428 B
C
Raw Normal View History

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
public slots:
void SetProgress(int percentage);
2009-12-24 20:16:07 +01:00
signals:
void WheelEvent(int delta);
private:
QPixmap icon_;
QPixmap grey_icon_;
2009-12-24 20:16:07 +01:00
};
#endif // SYSTEMTRAYICON_H