Compiles again, without BCValueType.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user