-
Notifications
You must be signed in to change notification settings - Fork 1
/
LBlock.cpp
executable file
·41 lines (36 loc) · 1 KB
/
LBlock.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "LBlock.h"
LBlock::LBlock(QWidget *parent) :
FatherBlock(parent)
{
this->SetBlockStyleSheet("background-color: rgb(255, 85, 0);");
this->SetShape();
}
void LBlock::SetShape()
{
this->SetSize(this->x(),this->y(),200,200);
this->InitBlocksList();
QBitArray newstatus(16);
newstatus.setBit(0,true);
newstatus.setBit(4,true);
newstatus.setBit(8,true);
newstatus.setBit(9,true);
this->addStatus(newstatus);
QBitArray newstatus1(16);
newstatus1.setBit(2,true);
newstatus1.setBit(4,true);
newstatus1.setBit(5,true);
newstatus1.setBit(6,true);
this->addStatus(newstatus1);
QBitArray newstatus2(16);
newstatus2.setBit(1,true);
newstatus2.setBit(2,true);
newstatus2.setBit(6,true);
newstatus2.setBit(10,true);
this->addStatus(newstatus2);
QBitArray newstatus3(16);
newstatus3.setBit(0,true);
newstatus3.setBit(1,true);
newstatus3.setBit(2,true);
newstatus3.setBit(4,true);
this->addStatus(newstatus3);
}