Changeset 5093 in ntrip for trunk/GnssCenter/inpedit


Ignore:
Timestamp:
Apr 12, 2013, 2:54:40 PM (8 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/inpedit/keyword.cpp

    r5092 r5093  
    100100  else if (widgetType == "combobox") {
    101101    QComboBox* cmbBox = new QComboBox();
     102    cmbBox->addItems(_desc.value("cards").split(QRegExp("\\s"), QString::SkipEmptyParts));
     103    if (_values.size()) {
     104      int index = cmbBox->findText(_values[0]);
     105      if (index != -1) {
     106        cmbBox->setCurrentIndex(index);
     107      }
     108    }
    102109    _widget = cmbBox;
    103110  }
Note: See TracChangeset for help on using the changeset viewer.