- Timestamp:
- Mar 27, 2011, 7:01:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r3158 r3159 2264 2264 QListIterator<QString> it(settings.value("rtnetUploadMountpoints").toStringList()); 2265 2265 while (it.hasNext()) { 2266 QStringList hlp = it.next().split(" 2267 if (hlp.size() > 2) {2266 QStringList hlp = it.next().split(","); 2267 if (hlp.size() > 6) { 2268 2268 ++iRow; 2269 2269 _rtnetTable->insertRow(iRow); 2270 2270 } 2271 2271 for (int iCol = 0; iCol < hlp.size(); iCol++) { 2272 _rtnetTable->setItem(iRow, iCol, new QTableWidgetItem(hlp[iCol])); 2272 if (iCol == 3) { 2273 QLineEdit* passwd = new QLineEdit(); 2274 passwd->setFrame(false); 2275 passwd->setEchoMode(QLineEdit::PasswordEchoOnEdit); 2276 passwd->setText(hlp[iCol]); 2277 _rtnetTable->setCellWidget(iRow, iCol, passwd); 2278 } 2279 else if (iCol == 4) { 2280 QComboBox* system = new QComboBox(); 2281 system->setEditable(false); 2282 system->addItems(QString("IGS05,ETRF2000,NAD83,GDA94,SIRGAS95,SIRGAS2000,Custom").split(",")); 2283 system->setFrame(false); 2284 system->setCurrentIndex(system->findText(hlp[iCol])); 2285 _rtnetTable->setCellWidget(iRow, iCol, system); 2286 } 2287 else if (iCol == 5) { 2288 QCheckBox* com = new QCheckBox(); 2289 if (hlp[iCol].toInt() == Qt::Checked) { 2290 com->setCheckState(Qt::Checked); 2291 } 2292 _rtnetTable->setCellWidget(iRow, iCol, com); 2293 } 2294 else { 2295 _rtnetTable->setItem(iRow, iCol, new QTableWidgetItem(hlp[iCol])); 2296 } 2273 2297 } 2274 2298 }
Note:
See TracChangeset
for help on using the changeset viewer.