-
Notifications
You must be signed in to change notification settings - Fork 0
/
bigboard.cpp
44 lines (33 loc) · 992 Bytes
/
bigboard.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
42
43
44
#include "bigboard.h"
BigBoard::BigBoard(QWidget *parent, unsigned int size)
{
resize(800,800);
setStyleSheet("\
BigBoard {\
background-image: url(':/images/resources/big-grid.jpg'); \
background-repeat: no-repeat;\
background-position: center;\
border: 0px solid green;\
}");
//setStyleSheet("border: 1px solid black;");
setAutoFillBackground(true);
_layout = new QGridLayout;
/* nastavi prostor mezi okrajem gridlayoutu a rodicovskeho widgetu */
_layout->setContentsMargins(9, 10, 10, 10);
/* nastavi prostor mezi jednotlivymi ctvereky na 0 */
_layout->setHorizontalSpacing(0);
_layout->setVerticalSpacing(0);
setLayout(_layout);
this->_sizeOfGoban = size;
}
BigBoard::~BigBoard()
{
//cleanBoard();
//nextColor = "black";
//StoneSocket::setNextColor("black");
}
/*
void BigBoard::setStoneOn(unsigned int x, unsigned int y, QString color)
{
}
*/