diff options
Diffstat (limited to 'src/widget')
-rw-r--r-- | src/widget/wcoverart.cpp | 9 | ||||
-rw-r--r-- | src/widget/wcoverart.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/widget/wcoverart.cpp b/src/widget/wcoverart.cpp index 52efc6a4ab..71c26591b3 100644 --- a/src/widget/wcoverart.cpp +++ b/src/widget/wcoverart.cpp @@ -138,3 +138,12 @@ void WCoverArt::mousePressEvent(QMouseEvent* event) { m_pMenu->show(event->globalPos(), m_lastRequestedCover, pTrack); } } + +void WCoverArt::mouseMoveEvent(QMouseEvent* event) { + if (event->HoverEnter) + DlgCoverArtFullSize::instance()->init(); +} + +void WCoverArt::leaveEvent(QEvent*) { + DlgCoverArtFullSize::instance()->close(); +} diff --git a/src/widget/wcoverart.h b/src/widget/wcoverart.h index 75c0fe7f56..f89d208203 100644 --- a/src/widget/wcoverart.h +++ b/src/widget/wcoverart.h @@ -36,6 +36,8 @@ class WCoverArt : public QWidget, public WBaseWidget { void paintEvent(QPaintEvent*); void resizeEvent(QResizeEvent*); void mousePressEvent(QMouseEvent*); + void mouseMoveEvent(QMouseEvent* event); + void leaveEvent(QEvent*); private: QPixmap scaledCoverArt(QPixmap normal); |