Changeset 7230 in ntrip for trunk/BNC/src/bncipport.cpp
- Timestamp:
- Aug 18, 2015, 12:50:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncipport.cpp
r7220 r7230 61 61 _ipLatLineEdit = new QLineEdit(); 62 62 _ipLonLineEdit = new QLineEdit(); 63 _ipCountryLineEdit = new QLineEdit(); 63 64 64 65 int ww = QFontMetrics(font()).width('w'); … … 68 69 _ipLatLineEdit->setMaximumWidth(9*ww); 69 70 _ipLonLineEdit->setMaximumWidth(9*ww); 71 _ipCountryLineEdit->setMaximumWidth(9*ww); 70 72 71 73 // WhatsThis … … 77 79 _ipLatLineEdit->setWhatsThis(tr("<p>Enter the approximate latitude of the stream providing receiver in degrees.<p></p>Example: 45.32</p>")); 78 80 _ipLonLineEdit->setWhatsThis(tr("<p>Enter the approximate longitude of the stream providing receiver in degrees.<p></p>Example: -15.20</p>")); 81 _ipCountryLineEdit->setWhatsThis(tr("<p>Specify the country code.</p><p>Recommended is the ISO 3166-1 alpha-3a code.<br>Example: DEU</p>")); 79 82 80 83 editLayout->addWidget(new QLabel(tr("Host")), 0, 0, Qt::AlignRight); … … 90 93 editLayout->addWidget(new QLabel(tr("Longitude")), 2, 2, Qt::AlignRight); 91 94 editLayout->addWidget(_ipLonLineEdit, 2, 3); 95 editLayout->addWidget(new QLabel(tr("Country")), 3, 0, Qt::AlignRight); 96 editLayout->addWidget(_ipCountryLineEdit, 3, 1); 92 97 93 98 mainLayout->addLayout(editLayout); … … 132 137 !_ipMountLineEdit->text().isEmpty() && 133 138 !_ipFormatLineEdit->text().isEmpty() && 139 !_ipCountryLineEdit->text().isEmpty() && 134 140 !_ipLatLineEdit->text().isEmpty() && 135 141 !_ipLonLineEdit->text().isEmpty() ) { … … 139 145 + _ipMountLineEdit->text() + " " 140 146 + _ipFormatLineEdit->text() + " " 147 + _ipCountryLineEdit->text() + " " 141 148 + _ipLatLineEdit->text() + " " 142 149 + _ipLonLineEdit->text() + " "
Note:
See TracChangeset
for help on using the changeset viewer.