diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-05-29 18:28:28 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-05-29 18:28:28 +0000 |
| commit | dc9ee8a2b5d5669e088301bb500a687f07d5d9d7 (patch) | |
| tree | 9a89f1782d5395e53559ab1e9c66f300a8834ad7 /src/plugins/Ui/skinned/playlisttitlebar.cpp | |
| parent | de2eb55424455f2995f1858c43edb33b05ef2a7b (diff) | |
| download | qmmp-dc9ee8a2b5d5669e088301bb500a687f07d5d9d7.tar.gz qmmp-dc9ee8a2b5d5669e088301bb500a687f07d5d9d7.tar.bz2 qmmp-dc9ee8a2b5d5669e088301bb500a687f07d5d9d7.zip | |
hide song length in shaded mode
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3504 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/playlisttitlebar.cpp')
| -rw-r--r-- | src/plugins/Ui/skinned/playlisttitlebar.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/plugins/Ui/skinned/playlisttitlebar.cpp b/src/plugins/Ui/skinned/playlisttitlebar.cpp index 707d87aa1..a714cb223 100644 --- a/src/plugins/Ui/skinned/playlisttitlebar.cpp +++ b/src/plugins/Ui/skinned/playlisttitlebar.cpp @@ -265,10 +265,13 @@ void PlayListTitleBar::showCurrent() PlayListItem* info = m_model->currentItem(); if (info) { - m_text = QString("%1. ").arg(m_model->currentIndex()+1); - m_text.append(info->text()); - m_text.append(QString(" (%1:%2)").arg(info->length()/60) - .arg(info->length()%60, 2, 10, QChar('0'))); + m_text = QString("%1. %2").arg(m_model->currentIndex()+1) + .arg(info->text()); + if(info->length()) + { + m_text.append(QString(" (%1:%2)").arg(info->length()/60) + .arg(info->length()%60, 2, 10, QChar('0'))); + } } else m_text.clear(); |
