/[svn]/qsampler/trunk/src/qsamplerDevice.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerDevice.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 490 by capela, Fri Apr 1 00:34:58 2005 UTC revision 492 by capela, Sat Apr 2 12:23:18 2005 UTC
# Line 928  void qsamplerDeviceParamTable::refresh ( Line 928  void qsamplerDeviceParamTable::refresh (
928                          pComboItem->setEnabled(bEnabled);                          pComboItem->setEnabled(bEnabled);
929                          QTable::setItem(iRow, 2, pComboItem);                          QTable::setItem(iRow, 2, pComboItem);
930                  } else if (param.possibilities.count() > 0 && bEnabled) {                  } else if (param.possibilities.count() > 0 && bEnabled) {
931                          QComboTableItem *pComboItem = new QComboTableItem(this,                          QStringList opts = param.possibilities;
932                                  param.possibilities);                          if (param.multiplicity)
933                          pComboItem->setCurrentItem(param.value);                                  opts.prepend(tr("(none)"));
934                            QComboTableItem *pComboItem = new QComboTableItem(this, opts);
935                            if (param.value.isEmpty())
936                                    pComboItem->setCurrentItem(0);
937                            else
938                                    pComboItem->setCurrentItem(param.value);
939                          pComboItem->setEnabled(bEnabled);                          pComboItem->setEnabled(bEnabled);
                 //      pComboItem->setEditable(bEnabled && param.multiplicity);  
940                          QTable::setItem(iRow, 2, pComboItem);                          QTable::setItem(iRow, 2, pComboItem);
941                  } else if (param.type == LSCP_TYPE_INT && bEnabled                  } else if (param.type == LSCP_TYPE_INT && bEnabled
942                                  && !param.range_min.isEmpty()                                  && !param.range_min.isEmpty()
# Line 1047  void qsamplerDeviceParamTableEditBox::se Line 1051  void qsamplerDeviceParamTableEditBox::se
1051    
1052    
1053  // end of qsamplerDevice.cpp  // end of qsamplerDevice.cpp
1054    

Legend:
Removed from v.490  
changed lines
  Added in v.492

  ViewVC Help
Powered by ViewVC