Add the last skin parts to the items hash.
This commit is contained in:
parent
3f0f64c888
commit
d5371d3d2b
2 changed files with 19 additions and 10 deletions
24
Skin.cpp
24
Skin.cpp
|
@ -214,7 +214,7 @@ void Skin::BuildButtons (void)
|
||||||
|
|
||||||
void Skin::BuildOther (void)
|
void Skin::BuildOther (void)
|
||||||
{
|
{
|
||||||
QPixmap *img;
|
QPixmap *img, *part;
|
||||||
QPainter(painter);
|
QPainter(painter);
|
||||||
|
|
||||||
img = GetPixmap("monoster.bmp");
|
img = GetPixmap("monoster.bmp");
|
||||||
|
@ -225,27 +225,33 @@ void Skin::BuildOther (void)
|
||||||
m_items->insert (STEREO_0, img->copy(0, 0, 29, 12));
|
m_items->insert (STEREO_0, img->copy(0, 0, 29, 12));
|
||||||
m_items->insert (STEREO_1, img->copy(0, 12, 29, 12));
|
m_items->insert (STEREO_1, img->copy(0, 12, 29, 12));
|
||||||
|
|
||||||
/*
|
|
||||||
img = GetPixmap("playpaus.bmp");
|
img = GetPixmap("playpaus.bmp");
|
||||||
|
|
||||||
m_pic_play = new QPixmap(11, 9);
|
part = new QPixmap(11, 9);
|
||||||
painter.begin(m_pic_play);
|
painter.begin(part);
|
||||||
painter.drawPixmap (0, 0, 3, 9, *img, 36, 0, 3, 9);
|
painter.drawPixmap (0, 0, 3, 9, *img, 36, 0, 3, 9);
|
||||||
painter.drawPixmap (3, 0, 8, 9, *img, 1, 0, 8, 9);
|
painter.drawPixmap (3, 0, 8, 9, *img, 1, 0, 8, 9);
|
||||||
painter.end();
|
painter.end();
|
||||||
|
m_items->insert (PIC_PLAY, part->copy());
|
||||||
|
delete part;
|
||||||
|
|
||||||
m_pic_pause = new QPixmap(11, 9);
|
part = new QPixmap(11, 9);
|
||||||
painter.begin(m_pic_pause);
|
painter.begin(part);
|
||||||
painter.drawPixmap (0, 0, 2, 9, *img, 27, 0, 2, 9);
|
painter.drawPixmap (0, 0, 2, 9, *img, 27, 0, 2, 9);
|
||||||
painter.drawPixmap (2, 0, 9, 9, *img, 9, 0, 9, 9);
|
painter.drawPixmap (2, 0, 9, 9, *img, 9, 0, 9, 9);
|
||||||
painter.end();
|
painter.end();
|
||||||
|
m_items->insert (PIC_PAUSE, part->copy());
|
||||||
|
delete part;
|
||||||
|
|
||||||
m_pic_stop = new QPixmap(11, 9);
|
part = new QPixmap(11, 9);
|
||||||
painter.begin(m_pic_stop);
|
painter.begin(part);
|
||||||
painter.drawPixmap (0, 0, 2, 9, *img, 27, 0, 2, 9);
|
painter.drawPixmap (0, 0, 2, 9, *img, 27, 0, 2, 9);
|
||||||
painter.drawPixmap (2, 0, 9, 9, *img, 18, 0, 9, 9);
|
painter.drawPixmap (2, 0, 9, 9, *img, 18, 0, 9, 9);
|
||||||
painter.end();
|
painter.end();
|
||||||
*/
|
m_items->insert (PIC_STOP, part->copy());
|
||||||
|
delete part;
|
||||||
|
|
||||||
|
delete img;
|
||||||
|
|
||||||
img = GetPixmap ("main.bmp");
|
img = GetPixmap ("main.bmp");
|
||||||
m_items->insert (MAIN_WINDOW, img->copy());
|
m_items->insert (MAIN_WINDOW, img->copy());
|
||||||
|
|
5
Skin.h
5
Skin.h
|
@ -151,7 +151,10 @@ class Skin : public QWidget
|
||||||
BTN_NEXT_1,
|
BTN_NEXT_1,
|
||||||
BTN_EJECT_0,
|
BTN_EJECT_0,
|
||||||
BTN_EJECT_1,
|
BTN_EJECT_1,
|
||||||
TEXTBG
|
TEXTBG,
|
||||||
|
PIC_PLAY,
|
||||||
|
PIC_PAUSE,
|
||||||
|
PIC_STOP,
|
||||||
};
|
};
|
||||||
private:
|
private:
|
||||||
QPixmap *Skin::GetPixmap (string file);
|
QPixmap *Skin::GetPixmap (string file);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue