1086 |
1086 |
1087 PageNetType::PageNetType(QWidget* parent) : AbstractPage(parent) |
1087 PageNetType::PageNetType(QWidget* parent) : AbstractPage(parent) |
1088 { |
1088 { |
1089 QGridLayout * pageLayout = new QGridLayout(this); |
1089 QGridLayout * pageLayout = new QGridLayout(this); |
1090 pageLayout->setRowStretch(0, 10); |
1090 pageLayout->setRowStretch(0, 10); |
1091 pageLayout->setRowStretch(2, 10); |
1091 pageLayout->setRowStretch(3, 10); |
1092 |
1092 |
1093 BtnLAN = addButton(tr("LAN game"), pageLayout, 1, 0); |
1093 pageLayout->setColumnStretch(1, 10); |
1094 BtnOfficialServer = addButton(tr("Official server"), pageLayout, 1, 1); |
1094 pageLayout->setColumnStretch(2, 20); |
1095 |
1095 pageLayout->setColumnStretch(3, 10); |
1096 BtnBack = addButton(":/res/Exit.png", pageLayout, 3, 0, true); |
1096 |
1097 } |
1097 BtnLAN = addButton(tr("LAN game"), pageLayout, 1, 2); |
|
1098 BtnOfficialServer = addButton(tr("Official server"), pageLayout, 2, 2); |
|
1099 |
|
1100 BtnBack = addButton(":/res/Exit.png", pageLayout, 4, 0, true); |
|
1101 } |