Playlist button now toggle playlist window.

This commit is contained in:
Tobias Rundstrom 2006-02-26 18:20:54 -03:00
parent 9693e64dab
commit e6f333f2b4
4 changed files with 12 additions and 4 deletions

View file

@ -35,9 +35,17 @@ class MainWindow : public QMainWindow
ShadedDisplay *getSD () { return m_shaded; }
bool getShaded (void) { return m_isshaded; }
void setPL (PlaylistWindow *p) { m_playlistwin = p; }
public slots:
void switchDisplay ();
void togglePL (void) {
if (m_playlistwin->isVisible ()) {
m_playlistwin->hide ();
} else {
m_playlistwin->show ();
}
}
private:
bool m_isshaded;