|
@@ -9334,7 +9334,7 @@ QVariant MeasurementModel::data(const QModelIndex &index, int role) const@/
|
9334
|
9334
|
{
|
9335
|
9335
|
return QVariant(row->at(index.column()));
|
9336
|
9336
|
}
|
9337
|
|
- if[role == Qt::DisplayRole || role == Qt::EditRole)
|
|
9337
|
+ if(role == Qt::DisplayRole || role == Qt::EditRole)
|
9338
|
9338
|
{
|
9339
|
9339
|
if(index.column() > row->size())
|
9340
|
9340
|
{
|
|
@@ -9363,10 +9363,13 @@ QVariant MeasurementModel::data(const QModelIndex &index, int role) const@/
|
9363
|
9363
|
{
|
9364
|
9364
|
if(v.value("relative").toBool())
|
9365
|
9365
|
{
|
9366
|
|
- return QVariant(QString("%1").@|arg(Units::convertRelativeTemperature(v.value("measurement").toDouble(),@| (Units::Unit)(v.value("unit").toInt()), unit)));
|
|
9366
|
+ return QVariant(QString("%1").@|arg(Units::convertRelativeTemperature(v.value("measurement").
|
|
9367
|
+ toDouble(),@| (Units::Unit)(v.value("unit").toInt()), unit)));
|
9367
|
9368
|
}
|
9368
|
9369
|
}
|
9369
|
|
- return QVariant(QString("%1")@|.arg(Units::convertTemperature(v.value("measurement").toDouble(),@| (Units::Unit)(v.value("unit").toInt()), unit)));
|
|
9370
|
+ return QVariant(QString("%1").@|
|
|
9371
|
+ arg(Units::convertTemperature(v.value("measurement").toDouble(),@|
|
|
9372
|
+ (Units::Unit)(v.value("unit").toInt()), unit)));
|
9370
|
9373
|
}
|
9371
|
9374
|
}
|
9372
|
9375
|
return QVariant(row->at(index.column()).toString());
|