From f2b67af58ae73996550049b494c78716d2157fab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Fri, 8 Sep 2023 23:01:31 +0800 Subject: [PATCH] update --- src/Qt5/imports/FluentUI/Controls/FluTableView.qml | 3 ++- src/Qt6/imports/FluentUI/Controls/FluTableView.qml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Qt5/imports/FluentUI/Controls/FluTableView.qml b/src/Qt5/imports/FluentUI/Controls/FluTableView.qml index ed3d7713..2168b88a 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluTableView.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluTableView.qml @@ -67,6 +67,7 @@ Rectangle { Component{ id:com_edit FluTextBox{ + id:text_box text: display readOnly: true === columnSource[column].readOnly Component.onCompleted: { @@ -75,7 +76,7 @@ Rectangle { } onCommit: { if(!readOnly){ - display = text + display = text_box.text } tableView.closeEditor() } diff --git a/src/Qt6/imports/FluentUI/Controls/FluTableView.qml b/src/Qt6/imports/FluentUI/Controls/FluTableView.qml index aa56ae38..298488d5 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluTableView.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluTableView.qml @@ -69,6 +69,7 @@ Rectangle { Component{ id:com_edit FluTextBox{ + id:text_box text: display readOnly: true === columnSource[column].readOnly Component.onCompleted: { @@ -77,7 +78,7 @@ Rectangle { } onCommit: { if(!readOnly){ - display = text + display = text_box.text } tableView.closeEditor() }