QTfrontend/ui/page/pageeditteam.cpp
changeset 6525 6c97379c584b
parent 6212 a5d95f32e17f
child 6616 f77bb02b669f
equal deleted inserted replaced
6524:416fdfb666da 6525:6c97379c584b
   204     return pageLayout;
   204     return pageLayout;
   205 }
   205 }
   206 
   206 
   207 QLayout * PageEditTeam::footerLayoutDefinition()
   207 QLayout * PageEditTeam::footerLayoutDefinition()
   208 {
   208 {
   209     QHBoxLayout * bottomLayout = new QHBoxLayout();
   209     return NULL;
   210 
       
   211     btnSave = addButton(":/res/Save.png", bottomLayout, 0, true);;
       
   212     btnSave->setStyleSheet("QPushButton{margin: 24px 0 0 0;}");
       
   213     bottomLayout->setAlignment(btnSave, Qt::AlignRight | Qt::AlignBottom);
       
   214 
       
   215     return bottomLayout;
       
   216 }
   210 }
   217 
   211 
   218 void PageEditTeam::connectSignals()
   212 void PageEditTeam::connectSignals()
   219 {
   213 {
   220     connect(btnSave, SIGNAL(clicked()), this, SLOT(saveTeam()));
   214     connect(this, SIGNAL(goBack()), this, SLOT(saveTeam()));
   221 
   215 
   222     signalMapper1 = new QSignalMapper(this);
   216     signalMapper1 = new QSignalMapper(this);
   223     signalMapper2 = new QSignalMapper(this);
   217     signalMapper2 = new QSignalMapper(this);
   224 
   218 
   225     connect(signalMapper1, SIGNAL(mapped(int)), this, SLOT(fixHHname(int)));
   219     connect(signalMapper1, SIGNAL(mapped(int)), this, SLOT(fixHHname(int)));