diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-06-08 17:55:57 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-06-08 17:55:57 +0000 |
| commit | 9a85b8beff474cb8c0a7044118428ee11ec91b53 (patch) | |
| tree | 9a858cbbfa59a278199bb21bb95b941a61dd9d30 /src/ui | |
| parent | 6c988486d713b05f53fe639f4963f3eb3263d2bb (diff) | |
| download | qmmp-9a85b8beff474cb8c0a7044118428ee11ec91b53.tar.gz qmmp-9a85b8beff474cb8c0a7044118428ee11ec91b53.tar.bz2 qmmp-9a85b8beff474cb8c0a7044118428ee11ec91b53.zip | |
fixed text scroller and window titles
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@962 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/listwidget.cpp | 5 | ||||
| -rw-r--r-- | src/ui/mainwindow.cpp | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/ui/listwidget.cpp b/src/ui/listwidget.cpp index 8d2ce84ab..a3e9ad430 100644 --- a/src/ui/listwidget.cpp +++ b/src/ui/listwidget.cpp @@ -300,11 +300,6 @@ void ListWidget::updateList() m_titles.replace(i, title.prepend(QString("%1").arg(m_first+i+1)+". ")); } - if (m_model->currentItem()) - { - TextScroller::getPointer()->setText(m_model->currentItem()->text()); - parentWidget()->parentWidget()->setWindowTitle(m_model->currentItem()->text()); - } cut(); update(); } diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 4002f4fae..50c695d3c 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2008 by Ilya Kotov * + * Copyright (C) 2006-2009 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -249,6 +249,10 @@ void MainWindow::showState(Qmmp::State state) //m_generalHandler->setState(General::Stopped); m_playlist->setTime(-1); m_titlebar->setTime(-1); + if (m_playlist->currentItem()) + setWindowTitle(m_playlist->currentItem()->text()); + else + setWindowTitle("Qmmp"); break; } } @@ -269,6 +273,8 @@ void MainWindow::showMetaData() { m_playlist->currentItem()->updateMetaData(m_core->metaData()); m_playlist->updateList(); + TextScroller::getPointer()->setText(m_playlist->currentItem()->text()); + setWindowTitle(m_playlist->currentItem()->text()); } } |
