Enable titles for ShadedDisplay again.

This commit is contained in:
Tobias Rundstrom 2006-02-26 21:43:24 -03:00
parent ce0acc79d4
commit 072a53b219
2 changed files with 15 additions and 1 deletions

View file

@ -55,6 +55,20 @@ ShadedDisplay::ShadedDisplay (QWidget *parent) : SkinDisplay (parent)
this, SLOT(setStatus(uint)));
connect (xmmsh, SIGNAL(playtimeChanged(uint)),
this, SLOT(setPlaytime(uint)));
connect (xmmsh, SIGNAL(currentSong (QHash<QString, QString>)),
this, SLOT(setMediainfo (QHash<QString, QString>)));
}
void
ShadedDisplay::setMediainfo (QHash<QString, QString> h)
{
QString n;
if (h.contains ("artist") && h.contains ("album") && h.contains ("title")) {
n = h.value("artist") + " - " + h.value("album") + " - " + h.value("title");
} else {
n = h.value("url");
}
m_title->setText (n);
}
void