From 402579f32a1c145e84ba3e49e810de27aa637704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Wed, 8 May 2024 18:58:22 +0800 Subject: [PATCH] update --- src/Qt5/imports/FluentUI/Controls/FluTableView.qml | 10 ++++++++++ src/Qt6/imports/FluentUI/Controls/FluTableView.qml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/src/Qt5/imports/FluentUI/Controls/FluTableView.qml b/src/Qt5/imports/FluentUI/Controls/FluTableView.qml index 14d6868c..8782cb2a 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluTableView.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluTableView.qml @@ -955,6 +955,16 @@ Rectangle { return false } sourceComponent: visible ? com_table_frozen : undefined + onStatusChanged: { + if(status === Loader.Ready){ + sourceComponent = Qt.binding(function(){ + if(modelData.frozen){ + return com_table_frozen + } + return undefined + }) + } + } } } } diff --git a/src/Qt6/imports/FluentUI/Controls/FluTableView.qml b/src/Qt6/imports/FluentUI/Controls/FluTableView.qml index 9f9b34a1..8144b8ca 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluTableView.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluTableView.qml @@ -955,6 +955,16 @@ Rectangle { return false } sourceComponent: visible ? com_table_frozen : undefined + onStatusChanged: { + if(status === Loader.Ready){ + sourceComponent = Qt.binding(function(){ + if(modelData.frozen){ + return com_table_frozen + } + return undefined + }) + } + } } } }