QTfrontend/pages.cpp
changeset 923 b3d097097b54
parent 788 00720357601f
child 1066 1f1b3686a2b0
equal deleted inserted replaced
922:63c52f8d5cfd 923:b3d097097b54
   633 	BtnBack->setFont(*font14);
   633 	BtnBack->setFont(*font14);
   634 	BtnBack->setText(QPushButton::tr("Back"));
   634 	BtnBack->setText(QPushButton::tr("Back"));
   635 	pageLayout->addWidget(BtnBack, 1, 0);
   635 	pageLayout->addWidget(BtnBack, 1, 0);
   636 }
   636 }
   637 
   637 
   638 PageSelectWeapon::PageSelectWeapon(QWidget* parent) : 
   638 PageSelectWeapon::PageSelectWeapon(QWidget* parent) :
   639   AbstractPage(parent)
   639   AbstractPage(parent)
   640 {
   640 {
   641 	QGridLayout * pageLayout = new QGridLayout(this);
   641 	QGridLayout * pageLayout = new QGridLayout(this);
   642 	pageLayout->setMargin(25);
   642 	pageLayout->setMargin(25);
   643         
   643 	
   644         pWeapons=new SelWeaponWidget(20, this);
   644 	pWeapons=new SelWeaponWidget(cDefaultAmmoStore->size() - 10, this);
   645 	pageLayout->addWidget(pWeapons, 0, 0, 1, 4);
   645 	pageLayout->addWidget(pWeapons, 0, 0, 1, 4);
   646 
   646 
   647 	BtnBack = addButton(tr("Back"), pageLayout, 1, 0);
   647 	BtnBack = addButton(tr("Back"), pageLayout, 1, 0);
   648 	BtnDefault = addButton(tr("Default"), pageLayout, 1, 1);
   648 	BtnDefault = addButton(tr("Default"), pageLayout, 1, 1);
   649 	BtnDelete = addButton(tr("Delete"), pageLayout, 1, 2);
   649 	BtnDelete = addButton(tr("Delete"), pageLayout, 1, 2);