修复 FluChart 在 Qt 5.15.2 下可选链 (?.) 报错

This commit is contained in:
lucky9loogn 2024-11-22 14:56:32 +08:00
parent c9e0732f99
commit 9d32e8e13b
2 changed files with 6 additions and 2 deletions

View File

@ -15,7 +15,9 @@ Canvas {
function animateToNewData()
{
chartAnimationProgress = 0.1;
d.jsChart?.update();
if (d.jsChart) {
d.jsChart.update();
}
chartAnimator.restart();
}
QtObject{

View File

@ -14,7 +14,9 @@ Canvas {
function animateToNewData()
{
chartAnimationProgress = 0.1;
d.jsChart?.update();
if (d.jsChart) {
d.jsChart.update();
}
chartAnimator.restart();
}
QtObject{