Changeset 5091 in ntrip


Ignore:
Timestamp:
Apr 12, 2013, 2:38:03 PM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter/inpedit
Files:
2 edited

Legend:

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

    r5000 r5091  
    6666          QString descKey = rx.cap(1).trimmed();
    6767          QString descVal = rx.cap(2).trimmed();
     68          _desc[descKey]  = descVal;
    6869          if (descKey == "widget") {
    6970            if      (descVal == "checkbox") {
     
    113114
    114115  if      (_type == checkbox) {
    115     _widget = new QCheckBox();
     116    QCheckBox* chBox = new QCheckBox();
     117    if (_values.size() && _values[0] == "1") {
     118      chBox->setChecked(true);
     119    }
     120    _widget = chBox;
    116121  }
    117122  else if (_type == combobox) {
    118     _widget = new QComboBox();
     123    QComboBox* cmbBox = new QComboBox();
     124    _widget = cmbBox;
    119125  }
    120126  else if (_type == lineedit) {
  • trunk/GnssCenter/inpedit/keyword.h

    r5000 r5091  
    2020
    2121 private:
    22   bool        _ok;
    23   QString     _name;
    24   QStringList _values;
    25   e_type      _type;
    26   QWidget*    _widget;
     22  bool                   _ok;
     23  QString                _name;
     24  QStringList            _values;
     25  e_type                 _type;
     26  QWidget*               _widget;
     27  QMap<QString, QString> _desc;
    2728};
    2829
Note: See TracChangeset for help on using the changeset viewer.