From bc6a115358931e7111a4c0a3efb2055af64dbcc0 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 5 Mar 2010 21:09:08 +0000 Subject: fixed popup widget git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1601 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/popupwidget.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/ui/popupwidget.h') 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 -#include #define DEFAULT_TEMPLATE "%if(%t,%t,%f)\n%if(%p,
%p,)\n%if(%a,
%a,)" @@ -33,7 +32,7 @@ namespace PlayListPopup { /** @author Ilya Kotov */ -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; }; } -- cgit v1.2.3-13-gbd6f