Some cleanups, file moves and changes in PlayStatus
This commit is contained in:
parent
a5e35d986e
commit
3f8ba378ad
10 changed files with 55 additions and 33 deletions
|
@ -28,8 +28,7 @@ PlaylistMenuButton::PlaylistMenuButton (PlaylistMenu *menu,
|
|||
m_pixid2 = pix2;
|
||||
menu->addButton (this);
|
||||
m_menu = menu;
|
||||
setMinimumSize (22, 18);
|
||||
setMaximumSize (22, 18);
|
||||
setFixedSize (22, 18);
|
||||
}
|
||||
|
||||
PlaylistMenuButton::~PlaylistMenuButton ()
|
||||
|
@ -62,8 +61,7 @@ PlaylistMenuButton::setPixmaps (Skin *skin)
|
|||
PlaylistMenu::PlaylistMenu (QWidget *parent, uint pix,
|
||||
uint decoration) : PixWidget (parent)
|
||||
{
|
||||
setMinimumSize (25, 18);
|
||||
setMaximumSize (25, 18);
|
||||
setFixedSize (25, 18);
|
||||
|
||||
m_expanded = new QWidget (parent);
|
||||
m_expanded->hide ();
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
PlaylistWindow::PlaylistWindow (QWidget *parent) : BaseWindow (parent)
|
||||
{
|
||||
QSettings s;
|
||||
m_mw = dynamic_cast<MainWindow *>(parent);
|
||||
#ifndef _WIN32
|
||||
setWindowIcon (QIcon (":icon.png"));
|
||||
#endif
|
||||
|
@ -83,7 +82,7 @@ PlaylistWindow::showEvent (QShowEvent *event)
|
|||
{
|
||||
QSettings s;
|
||||
s.setValue ("playlist/visible", true);
|
||||
m_mw->attachWidgets ();
|
||||
mw ()->attachWidgets ();
|
||||
|
||||
emit visibilityChanged (true);
|
||||
}
|
||||
|
@ -130,7 +129,7 @@ PlaylistWindow::resizeEvent (QResizeEvent *event)
|
|||
if (s.value("playlist/shaded").toBool ()) {
|
||||
s.setValue ("playlist/size", size ());
|
||||
}
|
||||
m_mw->attachWidgets ();
|
||||
mw ()->attachWidgets ();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -61,8 +61,6 @@ class PlaylistWindow : public BaseWindow {
|
|||
|
||||
Button *m_shadebtn;
|
||||
Button *m_closebtn;
|
||||
MainWindow *m_mw;
|
||||
|
||||
};
|
||||
|
||||
#endif // __PLAYLISTWINDOW_H__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue