Chanded to permanent editors.
This commit is contained in:
@@ -90,7 +90,21 @@ bool BCDeviceView::firstExpose()
|
||||
void BCDeviceView::onValueListReady( BCDevice::ID deviceID, BCValueList valueList )
|
||||
{
|
||||
if(_devideID == deviceID)
|
||||
{
|
||||
_valueModel.takeValueList( valueList );
|
||||
const BCValueList& list = _valueModel.getValueList();
|
||||
int rows = _valueModel.rowCount();
|
||||
for (int r = 0; r < rows; ++r)
|
||||
{
|
||||
BCValuePtr bcValue = list[r];
|
||||
if( !bcValue->isReadOnly() )
|
||||
{
|
||||
QModelIndex index = _valueModel.index(r, 1);
|
||||
openPersistentEditor(index);
|
||||
}
|
||||
}
|
||||
} // if id
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user