QTfrontend/pages.cpp
changeset 323 ea947f2c3d2f
parent 322 e7175ae57945
child 329 4c3aad46baa5
equal deleted inserted replaced
322:e7175ae57945 323:ea947f2c3d2f
   445 
   445 
   446 PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent)
   446 PageNetGame::PageNetGame(QWidget* parent) : QWidget(parent)
   447 {
   447 {
   448 	QFont * font14 = new QFont("MS Shell Dlg", 14);
   448 	QFont * font14 = new QFont("MS Shell Dlg", 14);
   449 	QGridLayout * pageLayout = new QGridLayout(this);
   449 	QGridLayout * pageLayout = new QGridLayout(this);
   450 	//pageLayout->setColumnStretch(0, 1);
       
   451 	//pageLayout->setColumnStretch(1, 2);
       
   452 	//pageLayout->setColumnStretch(2, 1);
       
   453 
   450 
   454 	pGameCFG=new GameCFGWidget(this);
   451 	pGameCFG=new GameCFGWidget(this);
   455 	pageLayout->addWidget(pGameCFG, 0, 0);
   452 	pageLayout->addWidget(pGameCFG, 0, 0);
   456 
       
   457 	
   453 	
   458 	pNetTeamsWidget=new TeamSelWidget(this);
   454 	pNetTeamsWidget=new TeamSelWidget(this);
   459 	pageLayout->addWidget(pNetTeamsWidget, 0, 1);
   455 	pageLayout->addWidget(pNetTeamsWidget, 0, 1);
   460 
   456 
   461 	BtnBack = new QPushButton(this);
   457 	BtnBack = new QPushButton(this);
   462 	BtnBack->setFont(*font14);
   458 	BtnBack->setFont(*font14);
   463 	BtnBack->setText(QPushButton::tr("Back"));
   459 	BtnBack->setText(QPushButton::tr("Back"));
   464 	pageLayout->addWidget(BtnBack, 1, 0);
   460 	pageLayout->addWidget(BtnBack, 1, 0);
   465 
       
   466 	BtnAddTeam = new QPushButton(this);
       
   467 	BtnAddTeam->setFont(*font14);
       
   468 	BtnAddTeam->setText(QPushButton::tr("Add Team"));
       
   469 	//pageLayout->addWidget(BtnAddTeam, 1, 1);
       
   470 
   461 
   471 	BtnGo	= new QPushButton(this);
   462 	BtnGo	= new QPushButton(this);
   472 	BtnGo->setFont(*font14);
   463 	BtnGo->setFont(*font14);
   473 	BtnGo->setText(QPushButton::tr("Go!"));
   464 	BtnGo->setText(QPushButton::tr("Go!"));
   474 	pageLayout->addWidget(BtnGo, 1, 1);
   465 	pageLayout->addWidget(BtnGo, 1, 1);
   475 
       
   476 	listNetTeams = new QListWidget(this);
       
   477 	//pageLayout->addWidget(listNetTeams, 0, 1);
       
   478 }
   466 }
   479 
   467 
   480 PageInfo::PageInfo(QWidget* parent) : QWidget(parent)
   468 PageInfo::PageInfo(QWidget* parent) : QWidget(parent)
   481 {
   469 {
   482 	QFont * font14 = new QFont("MS Shell Dlg", 14);
   470 	QFont * font14 = new QFont("MS Shell Dlg", 14);