QTfrontend/ui/page/pageselectweapon.cpp
changeset 6525 6c97379c584b
parent 6060 fdfc01419815
child 6700 e04da46ee43c
equal deleted inserted replaced
6524:416fdfb666da 6525:6c97379c584b
    51     BtnDelete = addButton(tr("Delete"), bottomLayout, 1, 2);
    51     BtnDelete = addButton(tr("Delete"), bottomLayout, 1, 2);
    52 
    52 
    53     bottomLayout->setColumnStretch(1,1);
    53     bottomLayout->setColumnStretch(1,1);
    54     bottomLayout->setColumnStretch(2,1);
    54     bottomLayout->setColumnStretch(2,1);
    55 
    55 
    56     btnSave = addButton(":/res/Save.png", bottomLayout, 0, 3, 2, 1, true);
       
    57     btnSave->setStyleSheet("QPushButton{margin: 24px 0 0 0;}");
       
    58     bottomLayout->setAlignment(btnSave, Qt::AlignRight | Qt::AlignBottom);
       
    59 
       
    60     return bottomLayout;
    56     return bottomLayout;
    61 }
    57 }
    62 
    58 
    63 void PageSelectWeapon::connectSignals()
    59 void PageSelectWeapon::connectSignals()
    64 {
    60 {
    65     connect(BtnDefault, SIGNAL(clicked()), pWeapons, SLOT(setDefault()));
    61     connect(BtnDefault, SIGNAL(clicked()), pWeapons, SLOT(setDefault()));
    66     connect(btnSave, SIGNAL(clicked()), pWeapons, SLOT(save()));
    62     connect(this, SIGNAL(goBack()), pWeapons, SLOT(save()));
    67     connect(BtnNew, SIGNAL(clicked()), pWeapons, SLOT(newWeaponsName()));
    63     connect(BtnNew, SIGNAL(clicked()), pWeapons, SLOT(newWeaponsName()));
    68     connect(BtnCopy, SIGNAL(clicked()), pWeapons, SLOT(copy()));
    64     connect(BtnCopy, SIGNAL(clicked()), pWeapons, SLOT(copy()));
    69     connect(selectWeaponSet, SIGNAL(currentIndexChanged(const QString&)), pWeapons, SLOT(setWeaponsName(const QString&)));
    65     connect(selectWeaponSet, SIGNAL(currentIndexChanged(const QString&)), pWeapons, SLOT(setWeaponsName(const QString&)));
    70 }
    66 }
    71 
    67