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); |