diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-10-10 07:17:34 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-10-10 07:17:34 +0000 |
| commit | 19ed899304622860f14e31f45e9cab83963295c7 (patch) | |
| tree | 9bf1582e18af737e1b3fbf9ebd3d4670239adfda /src/plugins/General/rgscan/rgscanhelper.cpp | |
| parent | 8f10f5f1023a0fcdbf8370a59d7a797b0b44c8fd (diff) | |
| download | qmmp-19ed899304622860f14e31f45e9cab83963295c7.tar.gz qmmp-19ed899304622860f14e31f45e9cab83963295c7.tar.bz2 qmmp-19ed899304622860f14e31f45e9cab83963295c7.zip | |
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
Diffstat (limited to 'src/plugins/General/rgscan/rgscanhelper.cpp')
| -rw-r--r-- | src/plugins/General/rgscan/rgscanhelper.cpp | 23 |
1 files changed, 5 insertions, 18 deletions
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 <QAction> -#include <QApplication> -#include <QProgressDialog> #include <qmmp/soundcore.h> #include <qmmpui/uihelper.h> #include <qmmpui/playlistmanager.h> @@ -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() { |
