diff options
| author | Anton <anton@picapica> | 2016-09-19 18:04:42 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2016-09-19 18:04:42 +0400 |
| commit | 9c7821f93b393ac65118fdc5911cbd666c5c3941 (patch) | |
| tree | c46a26d87201489e193ed7e742c6487ce640b8b9 /pica-client | |
| parent | 54831caf1163259aabbec6cec8edf4529b668ef7 (diff) | |
| download | pica-pica-9c7821f93b393ac65118fdc5911cbd666c5c3941.tar.gz pica-pica-9c7821f93b393ac65118fdc5911cbd666c5c3941.zip | |
labels for settings dialog
Diffstat (limited to 'pica-client')
| -rw-r--r-- | pica-client/dialogs/settingsdialog.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pica-client/dialogs/settingsdialog.cpp b/pica-client/dialogs/settingsdialog.cpp index 000e922..c9a60a1 100644 --- a/pica-client/dialogs/settingsdialog.cpp +++ b/pica-client/dialogs/settingsdialog.cpp @@ -17,14 +17,16 @@ SettingsDialog::SettingsDialog(QWidget *parent) : QVBoxLayout *directc2cLayout = new QVBoxLayout(); rbDisableDirectConns = new QRadioButton(tr("Disable direct connections"), this); - rbEnableOutgoingConns = new QRadioButton(tr("Enable only outgoing direct connections"), this); + rbEnableOutgoingConns = new QRadioButton(tr("Connect to the remote peer directly if possible"), this); rbEnableIncomingConns = new QRadioButton(tr("Enable incoming direct connections"), this); rbEnableIncomingConns->setChecked(true); QLabel *lbAddr = new QLabel(tr("Public address for incoming connections"), this); addr = new QLineEdit(tr("0.0.0.0"), this); + QLabel *lbPubPort = new QLabel(tr("External TCP port for incoming connections"), this); publicPort = new QSpinBox(this); + QLabel *lbLocPort = new QLabel(tr("Local TCP port for incoming connections"), this); localPort = new QSpinBox(this); publicPort->setRange(1, 65535); @@ -40,7 +42,9 @@ SettingsDialog::SettingsDialog(QWidget *parent) : directc2cLayout->addWidget(rbEnableIncomingConns); directc2cLayout->addWidget(lbAddr); directc2cLayout->addWidget(addr); + directc2cLayout->addWidget(lbPubPort); directc2cLayout->addWidget(publicPort); + directc2cLayout->addWidget(lbLocPort); directc2cLayout->addWidget(localPort); directc2cLayout->addStretch(1); |
