94 } |
94 } |
95 |
95 |
96 PageLocalGame::PageLocalGame(QWidget* parent) : QWidget(parent) |
96 PageLocalGame::PageLocalGame(QWidget* parent) : QWidget(parent) |
97 { |
97 { |
98 QFont * font14 = new QFont("MS Shell Dlg", 14); |
98 QFont * font14 = new QFont("MS Shell Dlg", 14); |
99 QGridLayout * pageLayout = new QGridLayout(this); |
99 QVBoxLayout * pageLayout = new QVBoxLayout(this); |
100 BtnBack = new QPushButton(this); |
100 QHBoxLayout * topLayout = new QHBoxLayout(); |
101 BtnBack->setFont(*font14); |
101 QHBoxLayout * bottomLayout = new QHBoxLayout(); |
102 BtnBack->setText(QPushButton::tr("Back")); |
102 pageLayout->addLayout(topLayout, 100); |
103 pageLayout->addWidget(BtnBack, 1, 0); |
103 pageLayout->addLayout(bottomLayout, 0); |
|
104 |
|
105 BtnBack = new QPushButton(this); |
|
106 BtnBack->setFont(*font14); |
|
107 BtnBack->setText(QPushButton::tr("Back")); |
|
108 bottomLayout->addWidget(BtnBack, 100); |
|
109 bottomLayout->addStretch(100); |
104 BtnSimpleGame = new QPushButton(this); |
110 BtnSimpleGame = new QPushButton(this); |
105 BtnSimpleGame->setFont(*font14); |
111 BtnSimpleGame->setFont(*font14); |
106 BtnSimpleGame->setText(QPushButton::tr("Simple Game")); |
112 BtnSimpleGame->setText(QPushButton::tr("Simple Game")); |
107 pageLayout->addWidget(BtnSimpleGame, 1, 3); |
113 bottomLayout->addWidget(BtnSimpleGame, 100); |
|
114 |
108 gameCFG = new GameCFGWidget(this); |
115 gameCFG = new GameCFGWidget(this); |
109 pageLayout->addWidget(gameCFG, 0, 0, 1, 2); |
116 topLayout->addStretch(100); |
|
117 topLayout->addWidget(gameCFG); |
|
118 topLayout->addStretch(100); |
110 } |
119 } |
111 |
120 |
112 PageEditTeam::PageEditTeam(QWidget* parent) : QWidget(parent) |
121 PageEditTeam::PageEditTeam(QWidget* parent) : QWidget(parent) |
113 { |
122 { |
114 QFont * font14 = new QFont("MS Shell Dlg", 14); |
123 QFont * font14 = new QFont("MS Shell Dlg", 14); |