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 @@ class TitleBar;
|
|||
|
||||
#include "PixWidget.h"
|
||||
|
||||
class Button;
|
||||
class PixmapButton;
|
||||
class Skin;
|
||||
|
||||
class TitleBar : public PixWidget
|
||||
|
|
@ -46,10 +46,10 @@ class TitleBar : public PixWidget
|
|||
QPixmap m_pixmap_active;
|
||||
QPixmap m_pixmap_inactive;
|
||||
|
||||
Button *m_shadebtn;
|
||||
Button *m_menubtn;
|
||||
Button *m_closebtn;
|
||||
Button *m_minimize;
|
||||
PixmapButton *m_shadebtn;
|
||||
PixmapButton *m_menubtn;
|
||||
PixmapButton *m_closebtn;
|
||||
PixmapButton *m_minimize;
|
||||
|
||||
bool m_shaded;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue