diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-10-16 15:59:23 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-10-16 15:59:23 +0000 |
| commit | 1837bc49ff6645be319decdafb4a896aab79f51f (patch) | |
| tree | 612ca3ad874d88a8e813cbaf103326ef7b7f4edc /src/plugins/General/statusicon/statusiconpopupwidget.h | |
| parent | edcf1ca68a32c85e18ac500990bd28e93e4be2e5 (diff) | |
| download | qmmp-1837bc49ff6645be319decdafb4a896aab79f51f.tar.gz qmmp-1837bc49ff6645be319decdafb4a896aab79f51f.tar.bz2 qmmp-1837bc49ff6645be319decdafb4a896aab79f51f.zip | |
added status icon popup message (patch by Artur Guzik)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1316 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/statusicon/statusiconpopupwidget.h')
| -rw-r--r-- | src/plugins/General/statusicon/statusiconpopupwidget.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/plugins/General/statusicon/statusiconpopupwidget.h b/src/plugins/General/statusicon/statusiconpopupwidget.h new file mode 100644 index 000000000..183074155 --- /dev/null +++ b/src/plugins/General/statusicon/statusiconpopupwidget.h @@ -0,0 +1,52 @@ +#ifndef STATUSICONPOPUPWIDGET_H +#define STATUSICONPOPUPWIDGET_H + +#include <QFrame> +#include <QWidget> +#include <QGridLayout> +#include "plugins/General/covermanager/coverwidget.h" + +class QLabel; +class QTimer; + + +class StatusIconPopupWidget : public QFrame +{ + Q_OBJECT +public: + + StatusIconPopupWidget(QWidget * parent = 0); + ~StatusIconPopupWidget(); + + void showInfo(int x, int y, int delay, bool splitFileName); //x,y are tray icon position + +protected: + + virtual void mousePressEvent(QMouseEvent *); + +private: + + QString totalTimeString(); + QLabel *m_lblTitle; + QLabel *m_lblArtist; + QLabel *m_lblAlbum; + QLabel *m_lblTime; + QGridLayout * gLayout; + QTimer *m_timer; + CoverWidget * m_cover; + QString m_totalTime; + QSpacerItem *m_spacer; + + int m_lastTrayX; + int m_lastTrayY; + int m_splitFileName; + +private slots: + + void updatePosition(int trayx, int trayy); + void updateMetaData(); + void updateTime(qint64 elapsed); + +}; + +#endif // STATUSICONPOPUPWIDGET_H |
