Changeset 5105 in ntrip for trunk/GnssCenter


Ignore:
Timestamp:
Apr 12, 2013, 4:56:38 PM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5104 r5105  
    163163  if      (widgetType == "checkbox") {
    164164    QCheckBox* chBox = static_cast<QCheckBox*>(_widget);
     165    if (chBox->isChecked()) {
     166      values << "1";
     167    }
     168    else {
     169      values << "0";
     170    }
    165171  }
    166172  else if (widgetType == "combobox") {
    167173    QComboBox* cmbBox = static_cast<QComboBox*>(_widget);
     174    values << cmbBox->currentText();
    168175  }
    169176  else if (widgetType == "lineedit") {
    170177    t_lineEdit* lineEdit = static_cast<t_lineEdit*>(_widget);
     178    values << lineEdit->text();
    171179  }
    172180  else if (widgetType == "radiobutton") {
    173181    QRadioButton* radButt = static_cast<QRadioButton*>(_widget);
     182    if (radButt->isChecked()) {
     183      values << "1";
     184    }
     185    else {
     186      values << "0";
     187    }
    174188  }
    175189  else if (widgetType == "selwin") {
Note: See TracChangeset for help on using the changeset viewer.