From 2f38232dcff25497044e6a53cdcd2b255515d632 Mon Sep 17 00:00:00 2001 From: ToMoree <270523346@qq.com> Date: Wed, 4 Dec 2024 13:49:22 +0800 Subject: [PATCH] =?UTF-8?q?fix=20treeview=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E8=AE=BE=E7=BD=AEchecked=E4=B8=BAtrue?= =?UTF-8?q?=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/FluTreeModel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FluTreeModel.cpp b/src/FluTreeModel.cpp index 2308275c..de9aae3f 100644 --- a/src/FluTreeModel.cpp +++ b/src/FluTreeModel.cpp @@ -1,4 +1,4 @@ -#include "FluTreeModel.h" +#include "FluTreeModel.h" #include @@ -126,6 +126,7 @@ void FluTreeModel::setDataSource(QList> data) { node->_parent = _root; _root->_children.append(node); } + node->_checked = item.value("checked").toBool(); _dataSource.append(node); if (item.contains("children")) { QList children = item.value("children").toList();