Changeset 5095 in ntrip for trunk/GnssCenter/inpedit


Ignore:
Timestamp:
Apr 12, 2013, 3:32:04 PM (8 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5094 r5095  
    127127  }
    128128  else if (widgetType == "spinbox") {
    129     _widget = new QSpinBox();
     129    QSpinBox* spinBox = new QSpinBox();
     130    QStringList rangeStr = _desc.value("range").split(QRegExp("\\s"), QString::SkipEmptyParts);
     131    if (rangeStr.size() >= 1) spinBox->setMinimum(rangeStr[0].toInt());
     132    if (rangeStr.size() >= 2) spinBox->setMaximum(rangeStr[1].toInt());
     133    if (rangeStr.size() >= 3) spinBox->setSingleStep(rangeStr[2].toInt());
     134    _widget = spinBox;
    130135  }
    131136  else if (widgetType == "uniline") {
Note: See TracChangeset for help on using the changeset viewer.