Added stylesheet, demo docs etc.
This commit is contained in:
@@ -163,9 +163,11 @@ void BCValueManager::readDevice( BCValueList& parsedValues )
|
||||
{
|
||||
//qDebug() << " --- found: " << _xml.name() << " : " << _xml.attributes().value(BCTags::ID);
|
||||
|
||||
QString id = _xml.attributes().value(BCTags::ID).toString();
|
||||
BCValueParams params
|
||||
{
|
||||
.ID = _xml.attributes().value(BCTags::ID).toString(),
|
||||
.ID = id,
|
||||
.Label = _xml.attributes().value(BCTags::Label).toString(),
|
||||
.Default = _xml.attributes().value(BCTags::Default).toString(),
|
||||
.Current = _xml.attributes().value(BCTags::Current).toString(),
|
||||
.Enabled = _xml.attributes().value(BCTags::Enabled).toString(),
|
||||
@@ -175,10 +177,11 @@ void BCValueManager::readDevice( BCValueList& parsedValues )
|
||||
.Factor = _xml.attributes().value(BCTags::Factor).toString()
|
||||
};
|
||||
|
||||
BCValue* newValue = BCValue::makeValue( _currentDeviceID, params );
|
||||
if(newValue)
|
||||
parsedValues.push_back( BCValue::makeValue( _currentDeviceID, params ) );
|
||||
|
||||
// __fix! können ungültige werte erzeugt werden ?
|
||||
//BCValue newValue = BCValue::makeValue( _currentDeviceID, params );
|
||||
//if(newValue)
|
||||
// parsedValues.push_back( newValue );
|
||||
parsedValues.push_back( BCValue::makeValue( _currentDeviceID, params ) );
|
||||
}
|
||||
|
||||
//printAttrs (_xml);
|
||||
|
||||
Reference in New Issue
Block a user