Playlist "works"

This commit is contained in:
Tobias Rundstrom 2006-02-26 02:36:20 -03:00
parent 4c0bffeb6f
commit 65c1011b8a
14 changed files with 710 additions and 19 deletions

View file

@ -3,12 +3,19 @@
PixWidget::PixWidget (QWidget *parent) : QWidget (parent)
{
Skin *s;
MainWindow *mw = dynamic_cast<MainWindow *>(window ());
if (!mw) {
qDebug ("******** DANGER! NO MAINWINDOW FOUND");
PlaylistWindow *pl = dynamic_cast<PlaylistWindow*>(window ());
if (!pl) {
qDebug ("What are you?!");
}
s = pl->getSkin ();
} else {
s = mw->getSkin ();
}
m_pixmap = QPixmap(0,0);
connect (mw->getSkin(), SIGNAL (skinChanged (Skin *)), this, SLOT (setPixmaps(Skin *)));
connect (s, SIGNAL (skinChanged (Skin *)), this, SLOT (setPixmaps(Skin *)));
}