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:
parent
13b9c47523
commit
0c5593076a
7 changed files with 49 additions and 8 deletions
|
@ -14,6 +14,8 @@ MainDisplay::MainDisplay (QWidget *parent) : SkinDisplay(parent)
|
|||
m_tbar->move(0, 0);
|
||||
m_tbar->resize(275, 14);
|
||||
|
||||
m_mw = dynamic_cast<MainWindow *>(parent);
|
||||
|
||||
SetupPushButtons ();
|
||||
SetupToggleButtons ();
|
||||
|
||||
|
@ -126,7 +128,7 @@ MainDisplay::SetupToggleButtons (void)
|
|||
if (!s.value ("playlist/hidden").toBool ())
|
||||
m_pls->toggleOn ();
|
||||
|
||||
connect (m_pls, SIGNAL(clicked()), window(), SLOT(togglePL()));
|
||||
connect (m_pls, SIGNAL(clicked()), this, SLOT(togglePL()));
|
||||
|
||||
m_eq = new ToggleButton (this, Skin::EQ_ON_0, Skin::EQ_ON_1,
|
||||
Skin::EQ_OFF_0, Skin::EQ_OFF_1);
|
||||
|
@ -141,6 +143,12 @@ MainDisplay::SetupToggleButtons (void)
|
|||
m_repeat->move(210, 89);
|
||||
}
|
||||
|
||||
void
|
||||
MainDisplay::togglePL (void)
|
||||
{
|
||||
m_mw->togglePL(false);
|
||||
}
|
||||
|
||||
void
|
||||
MainDisplay::SetupPushButtons (void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue