Compiles again, without BCValueType.

This commit is contained in:
2026-01-03 02:50:28 +01:00
parent 6032abb35c
commit c5dc84179b
14 changed files with 353 additions and 568 deletions

View File

@@ -31,7 +31,7 @@
#include <bcvaluemodel.h>
#include <bcvaluetype.h>
/**
* @brief Konstruktor, ohne Besonderheiten
@@ -144,17 +144,17 @@ QVariant BCValueModel::data(const QModelIndex& index, int role) const
if (wrongRole || !index.isValid() || row >= _valueList.size() )
return QVariant();
BCValuePtr value = _valueList.at( row );
const BCValue& value = *(_valueList.at( row ).get());
if( col == 0 )
return value->label;
return value.label;
if( col == 1)
{
if( role == Qt::DisplayRole )
return QString("%1 %2").arg( value->visibleValue, value->valueType->unitLabel);
return QString("%1 %2").arg( value.visibleValue, value.unitLabel);
return value->visibleValue;
return value.visibleValue;
}
return QVariant();