-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmallboard.cpp
37 lines (27 loc) · 886 Bytes
/
smallboard.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
#include "smallboard.h"
SmallBoard::SmallBoard(QWidget *parent, unsigned int size)
{
resize(800,800);
setStyleSheet("\
SmallBoard {\
background-image: url(:/images/resources/small-grid.jpg); \
background-repeat: no-repeat;\
background-position: center;\
border: 0px solid green;\
}");
//setStyleSheet("border: 1px solid black;");
_layout = new QGridLayout;
/* nastavi prostor mezi okrajem gridlayoutu a rodicovskeho widgetu */
_layout->setContentsMargins(210, 208, 209, 205);
/* nastavi prostor mezi jednotlivymi ctvereky na 0 */
_layout->setHorizontalSpacing(0);
_layout->setVerticalSpacing(0);
setLayout(_layout);
this->_sizeOfGoban = size;
}
SmallBoard::~SmallBoard()
{
//cleanBoard();
//nextColor = "black";
//StoneSocket::setNextColor("black");
}