diff options
Diffstat (limited to 'src/widget')
-rw-r--r-- | src/widget/wcoverart.cpp | 18 | ||||
-rw-r--r-- | src/widget/wcoverart.h | 6 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/widget/wcoverart.cpp b/src/widget/wcoverart.cpp index 599f888501..1adacbff1a 100644 --- a/src/widget/wcoverart.cpp +++ b/src/widget/wcoverart.cpp @@ -13,7 +13,7 @@ WCoverArt::WCoverArt(QWidget* parent, TrackCollection* pTrackCollection) : QWidget(parent), WBaseWidget(this), - m_bEnableWidget(true), + m_bEnable(true), m_pMenu(new WCoverArtMenu(this)), m_trackDAO(pTrackCollection->getTrackDAO()), m_pDlgFullSize(new DlgCoverArtFullSize()) { @@ -75,16 +75,16 @@ void WCoverArt::slotCoverLocationUpdated(const QString& newLoc, } } -void WCoverArt::slotEnableWidget(bool enable) { - m_bEnableWidget = enable; +void WCoverArt::slotEnable(bool enable) { + m_bEnable = enable; int h = (float) parentWidget()->height() / 3; - h = m_bEnableWidget ? h : 0; + h = m_bEnable ? h : 0; setMinimumHeight(h); setMaximumHeight(h); update(); } -void WCoverArt::slotResetWidget() { +void WCoverArt::slotReset() { m_lastRequestedCover = CoverInfo(); CoverArtCache* pCache = CoverArtCache::instance(); if (pCache != NULL) { @@ -95,7 +95,7 @@ void WCoverArt::slotResetWidget() { } void WCoverArt::slotPixmapFound(int trackId, QPixmap pixmap) { - if (!m_bEnableWidget) { + if (!m_bEnable) { return; } if (m_lastRequestedCover.trackId == trackId) { @@ -106,7 +106,7 @@ void WCoverArt::slotPixmapFound(int trackId, QPixmap pixmap) { } void WCoverArt::slotLoadCoverArt(CoverInfo info, bool cachedOnly) { - if (!m_bEnableWidget) { + if (!m_bEnable) { return; } m_lastRequestedCover = info; @@ -124,7 +124,7 @@ QPixmap WCoverArt::scaledCoverArt(QPixmap normal) { } void WCoverArt::paintEvent(QPaintEvent*) { - if (!m_bEnableWidget) { + if (!m_bEnable) { return; } @@ -154,7 +154,7 @@ void WCoverArt::resizeEvent(QResizeEvent*) { } void WCoverArt::mousePressEvent(QMouseEvent* event) { - if (!m_bEnableWidget) { + if (!m_bEnable) { return; } diff --git a/src/widget/wcoverart.h b/src/widget/wcoverart.h index 98ef4b3f7b..be333df7cb 100644 --- a/src/widget/wcoverart.h +++ b/src/widget/wcoverart.h @@ -23,8 +23,8 @@ class WCoverArt : public QWidget, public WBaseWidget { void setup(QDomNode node, const SkinContext& context); public slots: - void slotResetWidget(); - void slotEnableWidget(bool); + void slotReset(); + void slotEnable(bool); void slotLoadCoverArt(CoverInfo info, bool cachedOnly); private slots: @@ -42,7 +42,7 @@ class WCoverArt : public QWidget, public WBaseWidget { private: QPixmap scaledCoverArt(QPixmap normal); - bool m_bEnableWidget; + bool m_bEnable; WCoverArtMenu* m_pMenu; QPixmap m_loadedCover; QPixmap m_loadedCoverScaled; |