equal
deleted
inserted
replaced
63 fX = qrand() % (wParent->width() + 1); |
63 fX = qrand() % (wParent->width() + 1); |
64 } |
64 } |
65 |
65 |
66 BGWidget::BGWidget(QWidget * parent) : QWidget(parent) |
66 BGWidget::BGWidget(QWidget * parent) : QWidget(parent) |
67 { |
67 { |
|
68 setAttribute(Qt::WA_NoSystemBackground, true); |
68 sprite.load(":/res/Star.png"); |
69 sprite.load(":/res/Star.png"); |
69 |
70 |
70 setAutoFillBackground(false); |
71 setAutoFillBackground(false); |
71 |
72 |
72 for (int i = 0; i < SPRITE_MAX; i++) spritePositions[i] = new SpritePosition(this, sprite.height()); |
73 for (int i = 0; i < SPRITE_MAX; i++) spritePositions[i] = new SpritePosition(this, sprite.height()); |