From 19ed899304622860f14e31f45e9cab83963295c7 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 10 Oct 2013 07:17:34 +0000 Subject: rgscan: added description, removed useless code git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3764 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/rgscan/rgscanhelper.cpp | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) (limited to 'src/plugins/General/rgscan/rgscanhelper.cpp') diff --git a/src/plugins/General/rgscan/rgscanhelper.cpp b/src/plugins/General/rgscan/rgscanhelper.cpp index 76da42dd4..c668390ca 100644 --- a/src/plugins/General/rgscan/rgscanhelper.cpp +++ b/src/plugins/General/rgscan/rgscanhelper.cpp @@ -19,8 +19,6 @@ ***************************************************************************/ #include -#include -#include #include #include #include @@ -32,25 +30,14 @@ RGScanHelper::RGScanHelper(QObject *parent) : QObject(parent) { - m_action = new QAction(tr("Calculate ReplayGain"), this); - m_action->setShortcut(tr("Meta+R")); - UiHelper::instance()->addAction(m_action, UiHelper::PLAYLIST_MENU); - connect (m_action, SIGNAL(triggered ()), SLOT(openRGScaner())); - //m_scaner = new RGScaner(this); - m_progress = new QProgressDialog(); - m_progress->setRange(0,100); - m_progress->setWindowTitle(tr("Scaning...")); - m_progress->setCancelButtonText(tr("Cancel")); - //connect(m_scaner,SIGNAL(progress(int)),m_progress,SLOT(setValue(int))); - //connect(m_scaner, SIGNAL(finished()), m_progress, SLOT(reset())); - //connect(m_scaner, SIGNAL(desriptionChanged(QString)), m_progress, SLOT(setLabelText(QString))); - //connect(m_progress, SIGNAL(canceled()), m_scaner, SLOT(stop())); + QAction *action = new QAction(tr("ReplayGain Scanner"), this); + action->setShortcut(tr("Meta+R")); + UiHelper::instance()->addAction(action, UiHelper::PLAYLIST_MENU); + connect (action, SIGNAL(triggered ()), SLOT(openRGScaner())); } RGScanHelper::~RGScanHelper() -{ - delete m_progress; -} +{} void RGScanHelper::openRGScaner() { -- cgit v1.2.3-13-gbd6f