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
|
@ -20,7 +20,7 @@
|
|||
|
||||
#include "shadeddisplay.h"
|
||||
#include "TitleBar.h"
|
||||
#include "Button.h"
|
||||
#include "pixmapbutton.h"
|
||||
|
||||
#include "SmallNumberDisplay.h"
|
||||
#include "TextBar.h"
|
||||
|
@ -46,32 +46,32 @@ ShadedDisplay::ShadedDisplay (QWidget *parent) : SkinDisplay (parent)
|
|||
m_title = new TextScroller (this, 39, 7, "shaded");
|
||||
m_title->move (79, 4);
|
||||
|
||||
m_prev = new Button (this);
|
||||
m_prev = new PixmapButton (this);
|
||||
m_prev->move(169, 4);
|
||||
m_prev->resize (8, 7);
|
||||
connect (m_prev, SIGNAL(clicked()), client.xplayback (), SLOT(prev ()));
|
||||
|
||||
m_play = new Button (this);
|
||||
m_play = new PixmapButton (this);
|
||||
m_play->move(177, 4);
|
||||
m_play->resize (10, 7);
|
||||
connect (m_play, SIGNAL(clicked()), client.xplayback (), SLOT(play ()));
|
||||
|
||||
m_pause = new Button (this);
|
||||
m_pause = new PixmapButton (this);
|
||||
m_pause->move(187, 4);
|
||||
m_pause->resize (10, 7);
|
||||
connect (m_pause, SIGNAL(clicked()), client.xplayback (), SLOT(pause ()));
|
||||
|
||||
m_stop = new Button (this);
|
||||
m_stop = new PixmapButton (this);
|
||||
m_stop->move(197, 4);
|
||||
m_stop->resize (9, 7);
|
||||
connect (m_stop, SIGNAL(clicked()), client.xplayback (), SLOT(stop ()));
|
||||
|
||||
m_next = new Button (this);
|
||||
m_next = new PixmapButton (this);
|
||||
m_next->move(206, 4);
|
||||
m_next->resize (8, 7);
|
||||
connect (m_next, SIGNAL(clicked()), client.xplayback (), SLOT(next ()));
|
||||
|
||||
m_eject = new Button (this);
|
||||
m_eject = new PixmapButton (this);
|
||||
m_eject->move(216, 4);
|
||||
m_eject->resize (9, 7);
|
||||
connect (m_eject, SIGNAL(clicked()), this, SLOT(fileOpen()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue