diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-08-21 19:13:47 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-08-21 19:13:47 +0000 |
| commit | ed3828f0df1bcef66b036ce1831a0aed87ed5482 (patch) | |
| tree | 33c21269d4c2556c67a7db22b71c55cb604950db /src/mainwindow.cpp | |
| parent | f19a1f3ea9aa8080b15b384bbe73896e4407ac41 (diff) | |
| download | qmmp-ed3828f0df1bcef66b036ce1831a0aed87ed5482.tar.gz qmmp-ed3828f0df1bcef66b036ce1831a0aed87ed5482.tar.bz2 qmmp-ed3828f0df1bcef66b036ce1831a0aed87ed5482.zip | |
added shoutcast title update
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@119 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2d13f7000..36d672175 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -131,6 +131,8 @@ MainWindow::MainWindow(const QStringList& args, QWidget *parent) SLOT(showOutputState(const OutputState&))); connect(m_core, SIGNAL(decoderStateChanged(const DecoderState&)), SLOT(showDecoderState(const DecoderState&))); + connect(m_core, SIGNAL(titleChanged(const QString&)), + SLOT(changeTitle(const QString&))); connect ( m_skin, SIGNAL ( skinChanged() ), this, SLOT ( updateSkin() ) ); updateEQ(); @@ -369,6 +371,12 @@ void MainWindow::showDecoderState(const DecoderState &st) } } +void MainWindow::changeTitle(const QString &title) +{ + m_playlist->currentItem()->changeTitle(title); + m_playlist->listWidget()->updateList(); +} + void MainWindow::closeEvent ( QCloseEvent *) { writeSettings(); |
