QTfrontend/ui/page/pageselectweapon.cpp
changeset 12665 5664ec82aed7
parent 11674 d59b6f289e30
child 12763 ad67a3804981
equal deleted inserted replaced
12664:943b258d5443 12665:5664ec82aed7
    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();