Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 04c8fee3 authored by Scott Wheeler's avatar Scott Wheeler

Use mouse release rather than mouse press for showing and hiding the cover

popup.

svn path=/trunk/kdemultimedia/juk/; revision=363243
parent f0490299
......@@ -41,7 +41,7 @@ struct CoverPopup : public QWidget
show();
}
virtual void leaveEvent(QEvent *) { close(); }
virtual void mousePressEvent(QMouseEvent *) { close(); }
virtual void mouseReleaseEvent(QMouseEvent *) { close(); }
};
////////////////////////////////////////////////////////////////////////////////
......
......@@ -117,7 +117,7 @@ void CoverItem::update(const FileHandle &file)
hide();
}
void CoverItem::mousePressEvent(QMouseEvent *event)
void CoverItem::mouseReleaseEvent(QMouseEvent *event)
{
if(event->button() == LeftButton &&
m_file.coverInfo()->hasCover())
......
......@@ -74,7 +74,7 @@ class CoverItem : public QLabel, public NowPlayingItem
public:
CoverItem(NowPlaying *parent);
virtual void update(const FileHandle &file);
virtual void mousePressEvent(QMouseEvent *event);
virtual void mouseReleaseEvent(QMouseEvent *event);
protected:
virtual void dragEnterEvent(QDragEnterEvent *e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment