refs #314, renamed convertFromQVariant, convertFromJson

discussion: https://dev.vatsim-germany.org/issues/314#note-19
This commit is contained in:
Klaus Basan
2014-08-24 02:32:44 +02:00
parent f3b68afab5
commit 40b428a315
117 changed files with 324 additions and 324 deletions

View File

@@ -40,20 +40,20 @@ namespace BlackMiscTest
qDebug() << (*ap_angle) << ap_angle->toQVariant().userType();
// This works, because ap is actually heading
ap_heading->fromQVariant(h2.toQVariant());
ap_heading->convertFromQVariant(h2.toQVariant());
qDebug() << (*ap_heading) << ap_heading->toQVariant().userType();
// This works, angle from variant angle
ap_angle->fromQVariant(a1.toQVariant());
ap_angle->convertFromQVariant(a1.toQVariant());
qDebug() << (*ap_angle) << ap_angle->toQVariant().userType();
// This gives me an unwanted(!) assert, canConvert is not smart enough to detect upcasting
// because CValueObjects are not QObjects
ap_angle->fromQVariant(h2.toQVariant());
ap_angle->convertFromQVariant(h2.toQVariant());
qDebug() << (*ap_angle) << ap_angle->toQVariant().userType();
// This gives me the intended assert, because I assign angle to heading
ap_heading->fromQVariant(a1.toQVariant());
ap_heading->convertFromQVariant(a1.toQVariant());
qDebug() << (*ap_heading) << ap_heading->toQVariant().userType();
return 0;