QTfrontend/ui/page/pagenet.cpp
changeset 11819 7642955690bc
parent 11046 47a8c19ecb60
child 12897 fc47fc4af6bd
equal deleted inserted replaced
11818:b421923c2577 11819:7642955690bc
    69 QLayout * PageNet::footerLayoutDefinition()
    69 QLayout * PageNet::footerLayoutDefinition()
    70 {
    70 {
    71     QHBoxLayout * footerLayout = new QHBoxLayout();
    71     QHBoxLayout * footerLayout = new QHBoxLayout();
    72 
    72 
    73     BtnNetSvrStart = formattedButton(QPushButton::tr("Start server"));
    73     BtnNetSvrStart = formattedButton(QPushButton::tr("Start server"));
    74     BtnNetSvrStart->setMinimumWidth(180);
    74     BtnNetSvrStart->setMinimumSize(180, 50);
    75     QString serverPath = bindir->absolutePath() + "/hedgewars-server";
    75     QString serverPath = bindir->absolutePath() + "/hedgewars-server";
    76 #ifdef Q_OS_WIN
    76 #ifdef Q_OS_WIN
    77     serverPath += + ".exe";
    77     serverPath += + ".exe";
    78 #endif
    78 #endif
    79     QFile server(serverPath);
    79     QFile server(serverPath);
    80     BtnNetSvrStart->setVisible(server.exists());
    80     BtnNetSvrStart->setVisible(server.exists());
    81 
    81 
    82     footerLayout->addStretch();
    82     footerLayout->addStretch();
    83     footerLayout->addWidget(BtnNetSvrStart);
    83     footerLayout->addWidget(BtnNetSvrStart, 0, Qt::AlignBottom);
    84 
    84 
    85     return footerLayout;
    85     return footerLayout;
    86 }
    86 }
    87 
    87 
    88 void PageNet::connectSignals()
    88 void PageNet::connectSignals()