diff --git a/example/example_en_US.ts b/example/example_en_US.ts
index 6e263692..f20047c2 100644
--- a/example/example_en_US.ts
+++ b/example/example_en_US.ts
@@ -2386,14 +2386,6 @@ Some contents...
-
- T_TreeView2
-
-
-
-
-
-
T_Typography
diff --git a/example/example_zh_CN.ts b/example/example_zh_CN.ts
index 33fd594e..048a6c55 100644
--- a/example/example_zh_CN.ts
+++ b/example/example_zh_CN.ts
@@ -2469,14 +2469,6 @@ Some contents...
共计选中%1条数据
-
- T_TreeView2
-
-
-
-
-
-
T_Typography
diff --git a/src/FluTreeModel.cpp b/src/FluTreeModel.cpp
index 1865dd66..f53fede8 100644
--- a/src/FluTreeModel.cpp
+++ b/src/FluTreeModel.cpp
@@ -101,7 +101,7 @@ void FluTreeModel::checkRow(int row,bool checked){
}
itemData->_checked = checked;
}
- Q_EMIT layoutChanged();
+ Q_EMIT dataChanged(index(0,0),index(rowCount()-1,0));
QList data;
foreach (auto item, _dataSource) {
if(!item->hasChildren()){
@@ -302,8 +302,7 @@ void FluTreeModel::dragAndDrop(int dragIndex,int dropIndex,bool isDropTopArea){
destChildren->insert(targetIndex,dragItem);
}
changePersistentIndex(index(qMin(dragIndex,dropIndex),0),index(qMax(dragIndex,dropIndex),0));
- Q_EMIT layoutChanged();
-
+ Q_EMIT dataChanged(index(0,0),index(rowCount()-1,0));
}
bool FluTreeModel::hitHasChildrenExpanded(int row){