equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Hedgewars, a free turn based strategy game |
2 * Hedgewars, a free turn based strategy game |
3 * Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com> |
3 * Copyright (c) 2004-2013 Andrey Korotaev <unC0Rr@gmail.com> |
4 * |
4 * |
5 * This program is free software; you can redistribute it and/or modify |
5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License as published by |
6 * it under the terms of the GNU General Public License as published by |
7 * the Free Software Foundation; version 2 of the License |
7 * the Free Software Foundation; version 2 of the License |
8 * |
8 * |
29 #include "gamecfgwidget.h" |
29 #include "gamecfgwidget.h" |
30 #include "teamselect.h" |
30 #include "teamselect.h" |
31 |
31 |
32 QLayout * PageMultiplayer::bodyLayoutDefinition() |
32 QLayout * PageMultiplayer::bodyLayoutDefinition() |
33 { |
33 { |
34 QGridLayout * pageLayout = new QGridLayout(); |
34 QHBoxLayout * pageLayout = new QHBoxLayout(); |
35 |
35 |
36 gameCFG = new GameCFGWidget(this); |
36 gameCFG = new GameCFGWidget(this); |
37 pageLayout->addWidget(gameCFG, 0, 0, 1, 2); |
37 pageLayout->addWidget(gameCFG, 3, Qt::AlignTop); |
38 |
|
39 pageLayout->setRowStretch(2, 1); |
|
40 |
38 |
41 teamsSelect = new TeamSelWidget(this); |
39 teamsSelect = new TeamSelWidget(this); |
42 pageLayout->addWidget(teamsSelect, 0, 2, 3, 2); |
40 pageLayout->addWidget(teamsSelect, 2, Qt::AlignTop); |
43 |
41 |
44 return pageLayout; |
42 return pageLayout; |
45 } |
43 } |
46 |
44 |
47 QLayout * PageMultiplayer::footerLayoutLeftDefinition() |
45 QLayout * PageMultiplayer::footerLayoutLeftDefinition() |