QTfrontend/bgwidget.cpp
changeset 2071 0faa147c47df
parent 2069 f7fad4ad4455
child 2377 f3fab2b09e0c
equal deleted inserted replaced
2070:28891bb36ba5 2071:0faa147c47df
    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());