Enable titles for ShadedDisplay again.
This commit is contained in:
parent
ce0acc79d4
commit
072a53b219
2 changed files with 15 additions and 1 deletions
|
@ -55,6 +55,20 @@ ShadedDisplay::ShadedDisplay (QWidget *parent) : SkinDisplay (parent)
|
||||||
this, SLOT(setStatus(uint)));
|
this, SLOT(setStatus(uint)));
|
||||||
connect (xmmsh, SIGNAL(playtimeChanged(uint)),
|
connect (xmmsh, SIGNAL(playtimeChanged(uint)),
|
||||||
this, SLOT(setPlaytime(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
|
void
|
||||||
|
|
|
@ -31,7 +31,7 @@ class ShadedDisplay : public SkinDisplay
|
||||||
public slots:
|
public slots:
|
||||||
void setStatus (uint status);
|
void setStatus (uint status);
|
||||||
void setPlaytime (uint time);
|
void setPlaytime (uint time);
|
||||||
|
void setMediainfo (QHash<QString, QString> h);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue