Changeset 5091 in ntrip
- Timestamp:
- Apr 12, 2013, 2:38:03 PM (12 years ago)
- Location:
- trunk/GnssCenter/inpedit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/inpedit/keyword.cpp
r5000 r5091 66 66 QString descKey = rx.cap(1).trimmed(); 67 67 QString descVal = rx.cap(2).trimmed(); 68 _desc[descKey] = descVal; 68 69 if (descKey == "widget") { 69 70 if (descVal == "checkbox") { … … 113 114 114 115 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; 116 121 } 117 122 else if (_type == combobox) { 118 _widget = new QComboBox(); 123 QComboBox* cmbBox = new QComboBox(); 124 _widget = cmbBox; 119 125 } 120 126 else if (_type == lineedit) { -
trunk/GnssCenter/inpedit/keyword.h
r5000 r5091 20 20 21 21 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; 27 28 }; 28 29
Note:
See TracChangeset
for help on using the changeset viewer.