63 sbPort->setMinimum(1024); |
63 sbPort->setMinimum(1024); |
64 sbPort->setMaximum(65535); |
64 sbPort->setMaximum(65535); |
65 gbLayout->addWidget(sbPort, 1, 1); |
65 gbLayout->addWidget(sbPort, 1, 1); |
66 |
66 |
67 BtnDefault = new QPushButton(gb); |
67 BtnDefault = new QPushButton(gb); |
68 BtnDefault->setText(QPushButton::tr("default")); |
68 BtnDefault->setMinimumWidth(50); |
|
69 BtnDefault->setText(QPushButton::tr("Reset")); |
|
70 BtnDefault->setWhatsThis(QPushButton::tr("Set the default server port for Hedgewars")); |
69 gbLayout->addWidget(BtnDefault, 1, 2); |
71 gbLayout->addWidget(BtnDefault, 1, 2); |
70 |
72 |
71 return pageLayout; |
73 return pageLayout; |
72 } |
74 } |
73 |
75 |
74 QLayout * PageNetServer::footerLayoutDefinition() |
76 QLayout * PageNetServer::footerLayoutDefinition() |
75 { |
77 { |
76 QHBoxLayout * bottomLayout = new QHBoxLayout(); |
78 QHBoxLayout * bottomLayout = new QHBoxLayout(); |
77 |
79 |
78 BtnStart = formattedButton(QPushButton::tr("Start")); |
80 BtnStart = formattedButton(QPushButton::tr("Start")); |
|
81 BtnStart->setWhatsThis(QPushButton::tr("Start private server")); |
79 BtnStart->setMinimumWidth(180); |
82 BtnStart->setMinimumWidth(180); |
80 |
83 |
81 bottomLayout->addStretch(); |
84 bottomLayout->addStretch(); |
82 bottomLayout->addWidget(BtnStart); |
85 bottomLayout->addWidget(BtnStart); |
83 |
86 |