Fixed Flag handling.

This commit is contained in:
2026-01-08 20:47:05 +01:00
parent 6b03797600
commit d6da7aac9a
11 changed files with 39 additions and 51 deletions

View File

@@ -81,12 +81,16 @@ void BCValueModel::takeValueList(BCValueList& newValueList)
* @param newValue Der neue sichtbare Zahlenwert, formatiert als QString, optionall
*/
void BCValueModel::updateValue(int row, BCValue::Flag state, uint32_t rawValue )
void BCValueModel::updateValue(int row, BCValue::Flags newState, uint32_t rawValue )
{
if( row > -1 && row < _valueList.size() )
{
const BCValue& value = *(_valueList[row].get());
BCValue::Flags newFlags1 = BCValue::Flag::NoFlag;
BCValue::Flags newFlags2 = newState;
qDebug() << " ---- XXX1: ValueUpdate: Flags: " << newFlags1;
qDebug() << " ---- XXX2: ValueUpdate: Flags: " << newFlags2;
// Obacht hier!
//value.valueFlags = state;
value.rawValue = rawValue;