QTfrontend/ui/page/pagenet.cpp
changeset 14391 35af3d1ccdfc
parent 12902 fc47fc4af6bd
child 14870 90cf07c60feb
equal deleted inserted replaced
14390:50c3186f05ab 14391:35af3d1ccdfc
    45     GBClayout->setColumnStretch(2, 1);
    45     GBClayout->setColumnStretch(2, 1);
    46 
    46 
    47     BtnNetConnect = new QPushButton(ConnGroupBox);
    47     BtnNetConnect = new QPushButton(ConnGroupBox);
    48     BtnNetConnect->setFont(*font14);
    48     BtnNetConnect->setFont(*font14);
    49     BtnNetConnect->setText(QPushButton::tr("Connect"));
    49     BtnNetConnect->setText(QPushButton::tr("Connect"));
       
    50     BtnNetConnect->setWhatsThis(tr("Connect to the selected server"));
    50     GBClayout->addWidget(BtnNetConnect, 2, 2);
    51     GBClayout->addWidget(BtnNetConnect, 2, 2);
    51 
    52 
    52     tvServersList = new QTableView(ConnGroupBox);
    53     tvServersList = new QTableView(ConnGroupBox);
    53     tvServersList->setSelectionBehavior(QAbstractItemView::SelectRows);
    54     tvServersList->setSelectionBehavior(QAbstractItemView::SelectRows);
    54     GBClayout->addWidget(tvServersList, 1, 0, 1, 3);
    55     GBClayout->addWidget(tvServersList, 1, 0, 1, 3);
    55 
    56 
    56     BtnUpdateSList = new QPushButton(ConnGroupBox);
    57     BtnUpdateSList = new QPushButton(ConnGroupBox);
    57     BtnUpdateSList->setFont(*font14);
    58     BtnUpdateSList->setFont(*font14);
    58     BtnUpdateSList->setText(QPushButton::tr("Update"));
    59     BtnUpdateSList->setText(QPushButton::tr("Update"));
       
    60     BtnUpdateSList->setWhatsThis(tr("Update the list of servers"));
    59     GBClayout->addWidget(BtnUpdateSList, 2, 0);
    61     GBClayout->addWidget(BtnUpdateSList, 2, 0);
    60 
    62 
    61     BtnSpecifyServer = new QPushButton(ConnGroupBox);
    63     BtnSpecifyServer = new QPushButton(ConnGroupBox);
    62     BtnSpecifyServer->setFont(*font14);
    64     BtnSpecifyServer->setFont(*font14);
    63     BtnSpecifyServer->setText(QPushButton::tr("Specify"));
    65     BtnSpecifyServer->setText(QPushButton::tr("Specify address"));
       
    66     BtnSpecifyServer->setWhatsThis(tr("Specify the address and port number of a known server and connect to it directly"));
    64     GBClayout->addWidget(BtnSpecifyServer, 2, 1);
    67     GBClayout->addWidget(BtnSpecifyServer, 2, 1);
    65 
    68 
    66     return pageLayout;
    69     return pageLayout;
    67 }
    70 }
    68 
    71 
    69 QLayout * PageNet::footerLayoutDefinition()
    72 QLayout * PageNet::footerLayoutDefinition()
    70 {
    73 {
    71     QHBoxLayout * footerLayout = new QHBoxLayout();
    74     QHBoxLayout * footerLayout = new QHBoxLayout();
    72 
    75 
    73     BtnNetSvrStart = formattedButton(QPushButton::tr("Start server"));
    76     BtnNetSvrStart = formattedButton(QPushButton::tr("Start server"));
       
    77     BtnNetSvrStart->setWhatsThis(tr("Start private server"));
    74     BtnNetSvrStart->setMinimumSize(180, 50);
    78     BtnNetSvrStart->setMinimumSize(180, 50);
    75     QString serverPath = bindir->absolutePath() + "/hedgewars-server";
    79     QString serverPath = bindir->absolutePath() + "/hedgewars-server";
    76 #ifdef Q_OS_WIN
    80 #ifdef Q_OS_WIN
    77     serverPath += + ".exe";
    81     serverPath += + ".exe";
    78 #endif
    82 #endif