Changed handling of buttons
Use PixmapButton in most cases insteas of Button or ToggleButton Moved positions and sizes of the buttons to Skin and let it return QIcons instead of Pixmaps
This commit is contained in:
parent
08cbc98487
commit
d3e140ad0e
12 changed files with 344 additions and 214 deletions
|
@ -32,8 +32,7 @@ class MainDisplay;
|
|||
|
||||
#include "Display.h"
|
||||
|
||||
class Button;
|
||||
class ToggleButton;
|
||||
class PixmapButton;
|
||||
class TextScroller;
|
||||
class TimeDisplay;
|
||||
class SmallNumberDisplay;
|
||||
|
@ -83,17 +82,17 @@ class MainDisplay : public SkinDisplay
|
|||
void SetupPushButtons (void);
|
||||
void SetupToggleButtons (void);
|
||||
|
||||
Button *m_prev;
|
||||
Button *m_play;
|
||||
Button *m_pause;
|
||||
Button *m_stop;
|
||||
Button *m_next;
|
||||
Button *m_eject;
|
||||
PixmapButton *m_prev;
|
||||
PixmapButton *m_play;
|
||||
PixmapButton *m_pause;
|
||||
PixmapButton *m_stop;
|
||||
PixmapButton *m_next;
|
||||
PixmapButton *m_eject;
|
||||
|
||||
ToggleButton *m_pls;
|
||||
ToggleButton *m_eq;
|
||||
ToggleButton *m_shuffle;
|
||||
ToggleButton *m_repeat;
|
||||
PixmapButton *m_pls;
|
||||
PixmapButton *m_eq;
|
||||
PixmapButton *m_shuffle;
|
||||
PixmapButton *m_repeat;
|
||||
|
||||
MainWindow *m_mw;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue