Changeset 7230 in ntrip for trunk/BNC/src/bncudpport.cpp
- Timestamp:
- Aug 18, 2015, 12:50:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncudpport.cpp
r7223 r7230 60 60 _ipLatLineEdit = new QLineEdit(); 61 61 _ipLonLineEdit = new QLineEdit(); 62 _ipCountryLineEdit = new QLineEdit(); 62 63 63 64 int ww = QFontMetrics(font()).width('w'); … … 67 68 _ipLatLineEdit->setMaximumWidth(9*ww); 68 69 _ipLonLineEdit->setMaximumWidth(9*ww); 70 _ipCountryLineEdit->setMaximumWidth(9*ww); 69 71 70 72 // WhatsThis … … 75 77 _ipLatLineEdit->setWhatsThis(tr("<p>Enter the approximate latitude of the stream providing receiver in degrees.<p></p>Example: 45.32</p>")); 76 78 _ipLonLineEdit->setWhatsThis(tr("<p>Enter the approximate longitude of the stream providing receiver in degrees.<p></p>Example: -15.20</p>")); 79 _ipCountryLineEdit->setWhatsThis(tr("<p>Specify the country code.</p><p>Recommended is the ISO 3166-1 alpha-3a code.<br>Example: DEU</p>")); 77 80 78 81 editLayout->addWidget(new QLabel(tr("UDP Port")), 0, 0, Qt::AlignRight); … … 86 89 editLayout->addWidget(new QLabel(tr("Longitude")), 2, 2, Qt::AlignRight); 87 90 editLayout->addWidget(_ipLonLineEdit, 2, 3); 91 editLayout->addWidget(new QLabel(tr("Country")), 3, 0, Qt::AlignRight); 92 editLayout->addWidget(_ipCountryLineEdit, 3, 1); 88 93 89 94 mainLayout->addLayout(editLayout); … … 127 132 !_ipMountLineEdit->text().isEmpty() && 128 133 !_ipFormatLineEdit->text().isEmpty() && 134 !_ipCountryLineEdit->text().isEmpty() && 129 135 !_ipLatLineEdit->text().isEmpty() && 130 136 !_ipLonLineEdit->text().isEmpty() ) { … … 134 140 + _ipMountLineEdit->text() + " " 135 141 + _ipFormatLineEdit->text() + " " 142 + _ipCountryLineEdit->text() + " " 136 143 + _ipLatLineEdit->text() + " " 137 144 + _ipLonLineEdit->text() + " "
Note:
See TracChangeset
for help on using the changeset viewer.