diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-03-05 21:09:08 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2010-03-05 21:09:08 +0000 |
| commit | bc6a115358931e7111a4c0a3efb2055af64dbcc0 (patch) | |
| tree | 204b862f00311949ec23bf2f168c5f6a6378a418 /src/ui/popupwidget.h | |
| parent | da5d96f90bc3c54b85ec23db9d856b837278cb83 (diff) | |
| download | qmmp-bc6a115358931e7111a4c0a3efb2055af64dbcc0.tar.gz qmmp-bc6a115358931e7111a4c0a3efb2055af64dbcc0.tar.bz2 qmmp-bc6a115358931e7111a4c0a3efb2055af64dbcc0.zip | |
fixed popup widget
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1601 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/popupwidget.h')
| -rw-r--r-- | src/ui/popupwidget.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/ui/popupwidget.h b/src/ui/popupwidget.h index c88ee3176..5e630313e 100644 --- a/src/ui/popupwidget.h +++ b/src/ui/popupwidget.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2009 by Ilya Kotov * + * Copyright (C) 2008-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -21,7 +21,6 @@ #define POPUPWIDGET_H #include <QWidget> -#include <QFrame> #define DEFAULT_TEMPLATE "<b>%if(%t,%t,%f)</b>\n%if(%p,<br>%p,)\n%if(%a,<br>%a,)" @@ -33,7 +32,7 @@ namespace PlayListPopup { /** @author Ilya Kotov <forkotov02@hotmail.ru> */ -class PopupWidget : public QFrame +class PopupWidget : public QWidget { Q_OBJECT public: @@ -41,10 +40,16 @@ public: ~PopupWidget(); - void popup(PlayListItem *item, QPoint pos); + void prepare(PlayListItem *item, QPoint pos); + void deactivate(); + PlayListItem *item(); protected: virtual void mousePressEvent (QMouseEvent *); + virtual void mouseMoveEvent (QMouseEvent *); + +private slots: + void loadCover(); private: QTimer *m_timer; @@ -53,7 +58,7 @@ private: QString m_template; uint m_pos; int m_coverSize; - PlayListItem *m_lastItem; + PlayListItem *m_item; }; } |
