34 QGridLayout * pageLayout = new QGridLayout(); |
34 QGridLayout * pageLayout = new QGridLayout(); |
35 |
35 |
36 gameCFG = new GameCFGWidget(this); |
36 gameCFG = new GameCFGWidget(this); |
37 pageLayout->addWidget(gameCFG, 0, 0, 1, 2); |
37 pageLayout->addWidget(gameCFG, 0, 0, 1, 2); |
38 |
38 |
39 btnSetup = new QPushButton(this); |
|
40 btnSetup->setText(QPushButton::tr("Setup")); |
|
41 pageLayout->addWidget(btnSetup, 1, 0, 1, 2); |
|
42 |
|
43 pageLayout->setRowStretch(2, 1); |
39 pageLayout->setRowStretch(2, 1); |
44 |
40 |
45 teamsSelect = new TeamSelWidget(this); |
41 teamsSelect = new TeamSelWidget(this); |
46 pageLayout->addWidget(teamsSelect, 0, 2, 3, 2); |
42 pageLayout->addWidget(teamsSelect, 0, 2, 3, 2); |
47 |
43 |
48 return pageLayout; |
44 return pageLayout; |
49 } |
45 } |
50 |
46 |
|
47 QLayout * PageMultiplayer::footerLayoutLeftDefinition() |
|
48 { |
|
49 QHBoxLayout * bottomLeftLayout = new QHBoxLayout(); |
|
50 |
|
51 btnSetup = addButton(":/res/Settings.png", bottomLeftLayout, 0, true); |
|
52 btnSetup->setWhatsThis(tr("Edit game preferences")); |
|
53 |
|
54 return bottomLeftLayout; |
|
55 } |
|
56 |
51 QLayout * PageMultiplayer::footerLayoutDefinition() |
57 QLayout * PageMultiplayer::footerLayoutDefinition() |
52 { |
58 { |
53 QHBoxLayout * footerLayout = new QHBoxLayout(); |
59 QHBoxLayout * footerLayout = new QHBoxLayout(); |
54 |
60 |
55 BtnStartMPGame = formattedButton(tr("Start")); |
61 const QIcon& lp = QIcon(":/res/Start.png"); |
56 BtnStartMPGame->setMinimumWidth(180); |
62 QSize sz = lp.actualSize(QSize(65535, 65535)); |
|
63 BtnStartMPGame = new QPushButton(); |
|
64 BtnStartMPGame->setText(tr("Start")); |
|
65 BtnStartMPGame->setMinimumWidth(sz.width() + 60); |
|
66 BtnStartMPGame->setIcon(lp); |
|
67 BtnStartMPGame->setFixedHeight(50); |
|
68 BtnStartMPGame->setIconSize(sz); |
|
69 BtnStartMPGame->setFlat(true); |
|
70 BtnStartMPGame->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
57 |
71 |
58 footerLayout->addStretch(); |
72 footerLayout->addStretch(); |
59 footerLayout->addWidget(BtnStartMPGame); |
73 footerLayout->addWidget(BtnStartMPGame); |
60 |
74 |
61 return footerLayout; |
75 return footerLayout; |