summaryrefslogtreecommitdiffstats
path: root/src/widget/wvumeter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/wvumeter.cpp')
-rw-r--r--src/widget/wvumeter.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/widget/wvumeter.cpp b/src/widget/wvumeter.cpp
index f10c579f44..d662f21d93 100644
--- a/src/widget/wvumeter.cpp
+++ b/src/widget/wvumeter.cpp
@@ -73,12 +73,9 @@ void WVuMeter::setup(QDomNode node)
m_iPeakFallTime = DEFAULT_FALLTIME;
}
-void WVuMeter::resetPositions()
-{
- WPixmapStore::deletePixmap(m_pPixmapBack);
- m_pPixmapBack = NULL;
- WPixmapStore::deletePixmap(m_pPixmapVu);
- m_pPixmapVu = NULL;
+void WVuMeter::resetPositions() {
+ m_pPixmapBack.clear();
+ m_pPixmapVu.clear();
}
void WVuMeter::setPixmaps(const QString &backFilename, const QString &vuFilename, bool bHorizontal)