57 return bottomLayout; |
57 return bottomLayout; |
58 } |
58 } |
59 |
59 |
60 void PageSelectWeapon::connectSignals() |
60 void PageSelectWeapon::connectSignals() |
61 { |
61 { |
|
62 connect(selectWeaponSet, SIGNAL(currentIndexChanged(const QString&)), pWeapons, SLOT(switchWeapons(const QString&))); |
62 connect(BtnDefault, SIGNAL(clicked()), pWeapons, SLOT(setDefault())); |
63 connect(BtnDefault, SIGNAL(clicked()), pWeapons, SLOT(setDefault())); |
63 connect(this, SIGNAL(goBack()), pWeapons, SLOT(save())); |
64 connect(this, SIGNAL(goBack()), pWeapons, SLOT(save())); |
64 connect(BtnNew, SIGNAL(clicked()), pWeapons, SLOT(newWeaponsName())); |
65 connect(BtnNew, SIGNAL(clicked()), pWeapons, SLOT(newWeaponsName())); |
65 connect(BtnCopy, SIGNAL(clicked()), pWeapons, SLOT(copy())); |
66 connect(BtnCopy, SIGNAL(clicked()), pWeapons, SLOT(copy())); |
66 connect(selectWeaponSet, SIGNAL(currentIndexChanged(const QString&)), pWeapons, SLOT(setWeaponsName(const QString&))); |
67 connect(BtnDelete, SIGNAL(clicked()), pWeapons, SLOT(deleteWeaponsName())); |
67 } |
68 } |
68 |
69 |
69 PageSelectWeapon::PageSelectWeapon(QWidget* parent) : AbstractPage(parent) |
70 PageSelectWeapon::PageSelectWeapon(QWidget* parent) : AbstractPage(parent) |
70 { |
71 { |
71 initPage(); |
72 initPage(); |