200 FortPreview->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
200 FortPreview->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); |
201 FortPreview->setPixmap(QPixmap()); |
201 FortPreview->setPixmap(QPixmap()); |
202 GBFLayout->addWidget(FortPreview, 1, 0); |
202 GBFLayout->addWidget(FortPreview, 1, 0); |
203 pageLayout->addWidget(GBoxFort, 2, 2, 1, 2); |
203 pageLayout->addWidget(GBoxFort, 2, 2, 1, 2); |
204 |
204 |
205 BtnTeamSave = addButton(tr("Save"), pageLayout, 4, 2, 1, 2); |
205 BtnTeamSave = addButton(":/res/Save.png", pageLayout, 4, 3, true);; |
206 |
206 |
207 QDir tmpdir; |
207 QDir tmpdir; |
208 tmpdir.cd(datadir->absolutePath()); |
208 tmpdir.cd(datadir->absolutePath()); |
209 tmpdir.cd("Forts"); |
209 tmpdir.cd("Forts"); |
210 tmpdir.setFilter(QDir::Files); |
210 tmpdir.setFilter(QDir::Files); |
618 AbstractPage(parent) |
618 AbstractPage(parent) |
619 { |
619 { |
620 QGridLayout * pageLayout = new QGridLayout(this); |
620 QGridLayout * pageLayout = new QGridLayout(this); |
621 pageLayout->setMargin(25); |
621 pageLayout->setMargin(25); |
622 |
622 |
623 pWeapons=new SelWeaponWidget(cDefaultAmmoStore->size() - 10, this); |
623 pWeapons = new SelWeaponWidget(cDefaultAmmoStore->size() - 10, this); |
624 pageLayout->addWidget(pWeapons, 0, 0, 1, 4); |
624 pageLayout->addWidget(pWeapons, 0, 0, 1, 4); |
625 |
625 |
626 BtnBack = addButton(tr("Back"), pageLayout, 1, 0); |
626 BtnBack = addButton(":/res/Exit.png", pageLayout, 1, 0, true); |
627 BtnDefault = addButton(tr("Default"), pageLayout, 1, 1); |
627 BtnDefault = addButton(tr("Default"), pageLayout, 1, 1); |
628 BtnDelete = addButton(tr("Delete"), pageLayout, 1, 2); |
628 BtnDelete = addButton(tr("Delete"), pageLayout, 1, 2); |
629 BtnSave = addButton(tr("Save"), pageLayout, 1, 3); |
629 BtnSave = addButton(":/res/Save.png", pageLayout, 1, 3, true); |
630 } |
630 } |
631 |
631 |
632 PageInGame::PageInGame(QWidget* parent) : |
632 PageInGame::PageInGame(QWidget* parent) : |
633 AbstractPage(parent) |
633 AbstractPage(parent) |
634 { |
634 { |