Added support for the shade/close buttons on the playlist, and changed the way

that togglePL works a bit to play nicer.
This commit is contained in:
Chris Gilbert 2006-03-12 02:19:45 +01:00 committed by Tobias Rundstrom
parent 13b9c47523
commit 0c5593076a
7 changed files with 49 additions and 8 deletions

View file

@ -101,10 +101,15 @@ MainWindow::moveEvent (QMoveEvent *event)
}
void
MainWindow::togglePL (void)
MainWindow::togglePL (bool UpdateButton)
{
QSettings s;
if(UpdateButton)
{
getMD()->GetPls()->toggleOn();
}
if (s.value ("playlist/hidden").toBool ()) {
m_playlistwin->move (s.value("playlist/pos").toPoint ());
m_playlistwin->show ();
@ -136,7 +141,7 @@ main (int argc, char **argv)
MainWindow *mw = new MainWindow (NULL);
PlaylistWindow *playlistwin = new PlaylistWindow (NULL);
PlaylistWindow *playlistwin = new PlaylistWindow (mw);
/*
* Now that everything is initialized