QTfrontend/ui/page/pagemultiplayer.cpp
changeset 6170 2b1748161278
parent 6060 fdfc01419815
child 6171 8627698134b6
equal deleted inserted replaced
6169:582f9f61b972 6170:2b1748161278
    13  *
    13  *
    14  * You should have received a copy of the GNU General Public License
    14  * You should have received a copy of the GNU General Public License
    15  * along with this program; if not, write to the Free Software
    15  * along with this program; if not, write to the Free Software
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
    17  */
    17  */
    18  
    18 
    19 #include <QGridLayout>
    19 /**
       
    20  * @file
       
    21  * @brief PageMultiplayer class implementation
       
    22  */
       
    23 
       
    24 #include <QHBoxLayout>
    20 #include <QPushButton>
    25 #include <QPushButton>
    21 
    26 
    22 #include "pagemultiplayer.h"
    27 #include "pagemultiplayer.h"
    23 #include "gamecfgwidget.h"
    28 #include "gamecfgwidget.h"
    24 #include "teamselect.h"
    29 #include "teamselect.h"
    37     pageLayout->setRowStretch(2, 1);
    42     pageLayout->setRowStretch(2, 1);
    38 
    43 
    39     teamsSelect = new TeamSelWidget(this);
    44     teamsSelect = new TeamSelWidget(this);
    40     pageLayout->addWidget(teamsSelect, 0, 2, 3, 2);
    45     pageLayout->addWidget(teamsSelect, 0, 2, 3, 2);
    41 
    46 
    42     BtnStartMPGame = addButton(tr("Start"), pageLayout, 3, 3);
    47     return pageLayout;
       
    48 }
    43 
    49 
    44     return pageLayout;
    50 QLayout * PageMultiplayer::footerLayoutDefinition()
       
    51 {
       
    52     QHBoxLayout * footerLayout = new QHBoxLayout();
       
    53 
       
    54     BtnStartMPGame = formattedButton(tr("Start"));
       
    55     BtnStartMPGame->setMinimumWidth(180);
       
    56 
       
    57     footerLayout->addStretch();
       
    58     footerLayout->addWidget(BtnStartMPGame);
       
    59 
       
    60     return footerLayout;
    45 }
    61 }
    46 
    62 
    47 void PageMultiplayer::connectSignals()
    63 void PageMultiplayer::connectSignals()
    48 {
    64 {
    49     PageMultiplayer::connect(btnSetup, SIGNAL(clicked()), this, SIGNAL(SetupClicked()));
    65     PageMultiplayer::connect(btnSetup, SIGNAL(clicked()), this, SIGNAL(SetupClicked()));