From 1b1902f398ddb42a324df1a9bee8b54785811fdb Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 3 Jul 2010 07:02:43 +0000 Subject: added global equalizer settings git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1796 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/mainwindow.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/ui/mainwindow.cpp') diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 913a7d46a..4e92f9678 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -114,7 +114,6 @@ MainWindow::MainWindow(const QStringList& args, BuiltinCommandLineOption* option connect(m_display,SIGNAL(shuffleToggled(bool)),m_pl_manager,SLOT(setShuffle(bool))); connect(m_display,SIGNAL(repeatableToggled(bool)),m_pl_manager,SLOT(setRepeatableList(bool))); - connect(m_equalizer, SIGNAL(valueChanged()), SLOT(updateEQ())); connect(m_jumpDialog,SIGNAL(playRequest()), SLOT(replay())); connect(m_core, SIGNAL(stateChanged(Qmmp::State)), SLOT(showState(Qmmp::State))); @@ -129,7 +128,6 @@ MainWindow::MainWindow(const QStringList& args, BuiltinCommandLineOption* option m_display->setPL(m_playlist); dock->updateDock(); m_pl_manager->currentPlayList()->doCurrentVisibleRequest(); - updateEQ(); #ifndef Q_OS_WIN32 QString cwd = QDir::currentPath(); processCommandArgs(args,cwd); @@ -196,15 +194,6 @@ void MainWindow::previous() m_player->previous(); } -void MainWindow::updateEQ() -{ - double b[10]; - for (int i=0; i<10; ++i) - b[i] = m_equalizer->gain(i); - m_core->setEQ(b, m_equalizer->preamp()); - m_core->setEQEnabled(m_equalizer->isEQEnabled()); -} - void MainWindow::showState(Qmmp::State state) { if(m_model) -- cgit v1.2.3-13-gbd6f