Neal Wilson vor 11 Jahren
Ursprung
Commit
c109a21a83
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. 4
    4
      src/typica.w

+ 4
- 4
src/typica.w Datei anzeigen

9334
 	{
9334
 	{
9335
 		return QVariant(row->at(index.column()));
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
 		if(index.column() > row->size())
9339
 		if(index.column() > row->size())
9340
 		{
9340
 		{
9361
 				{
9361
 				{
9362
 					if(v.contains("relative"))
9362
 					if(v.contains("relative"))
9363
 					{
9363
 					{
9364
-						if(v.value("relative") == true)
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").toDouble(),@| (Units::Unit)(v.value("unit").toInt()), unit)));
9367
 						}
9367
 						}
9368
 					}
9368
 					}
9369
-					return QVariant(QString("%1").arg(Units::convertTemperature(v.value("measurement").toDouble(), (Units::Unit)(v.value("unit").toInt()), unit)));
9369
+					return QVariant(QString("%1")@|.arg(Units::convertTemperature(v.value("measurement").toDouble(),@| (Units::Unit)(v.value("unit").toInt()), unit)));
9370
 				}
9370
 				}
9371
 			}
9371
 			}
9372
 			return QVariant(row->at(index.column()).toString());
9372
 			return QVariant(row->at(index.column()).toString());

Laden…
Abbrechen
Speichern