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() |
1051 |
|
|
1052 |
|
|
1053 |
// end of qsamplerDevice.cpp |
// end of qsamplerDevice.cpp |
1054 |
|
|