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
10
Playlist.h
10
Playlist.h
|
@ -9,6 +9,7 @@
|
|||
#include <QMainWindow>
|
||||
#include <QFont>
|
||||
|
||||
class MainWindow;
|
||||
class PlaylistWidget;
|
||||
class PlaylistScroller;
|
||||
|
||||
|
@ -113,7 +114,6 @@ class PlaylistWindow : public QMainWindow {
|
|||
~PlaylistWindow () {}
|
||||
|
||||
void setActive (bool);
|
||||
void switchDisplay (void);
|
||||
|
||||
void mousePressEvent (QMouseEvent *event);
|
||||
void mouseMoveEvent (QMouseEvent *event);
|
||||
|
@ -123,6 +123,10 @@ class PlaylistWindow : public QMainWindow {
|
|||
void resizeEvent (QResizeEvent *event);
|
||||
|
||||
|
||||
public slots:
|
||||
void switchDisplay (void);
|
||||
void togglePL (void);
|
||||
|
||||
private:
|
||||
PlaylistWidget *m_playlist;
|
||||
PlaylistShade *m_shaded;
|
||||
|
@ -130,6 +134,10 @@ class PlaylistWindow : public QMainWindow {
|
|||
int m_diffx;
|
||||
int m_diffy;
|
||||
|
||||
Button *m_shadebtn;
|
||||
Button *m_closebtn;
|
||||
MainWindow *m_mw;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue