QTfrontend/pages.cpp
changeset 1576 a02353129a41
parent 1522 6794cf8f1e6f
child 1584 90f6a5abad17
equal deleted inserted replaced
1575:ec56e8956fcb 1576:a02353129a41
   649 PageSelectWeapon::PageSelectWeapon(QWidget* parent) :
   649 PageSelectWeapon::PageSelectWeapon(QWidget* parent) :
   650   AbstractPage(parent)
   650   AbstractPage(parent)
   651 {
   651 {
   652 	QGridLayout * pageLayout = new QGridLayout(this);
   652 	QGridLayout * pageLayout = new QGridLayout(this);
   653 	
   653 	
   654 	pWeapons = new SelWeaponWidget(cDefaultAmmoStore->size() - 10, this);
   654 	pWeapons = new SelWeaponWidget(cDefaultAmmoStore->size(), this);
   655 	pageLayout->addWidget(pWeapons, 0, 0, 1, 4);
   655 	pageLayout->addWidget(pWeapons, 0, 0, 1, 4);
   656 
   656 
   657 	BtnBack = addButton(":/res/Exit.png", pageLayout, 1, 0, true);
   657 	BtnBack = addButton(":/res/Exit.png", pageLayout, 1, 0, true);
   658 	BtnDefault = addButton(tr("Default"), pageLayout, 1, 1);
   658 	BtnDefault = addButton(tr("Default"), pageLayout, 1, 1);
   659 	BtnDelete = addButton(tr("Delete"), pageLayout, 1, 2);
   659 	BtnDelete = addButton(tr("Delete"), pageLayout, 1, 2);