1
0
mirror of https://github.com/zhuzichu520/FluentUI.git synced 2025-05-04 01:17:22 +08:00

修复 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
src
Qt5/imports/FluentUI/Controls
Qt6/imports/FluentUI/Controls

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

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