mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-24 19:50:44 +08:00
update
This commit is contained in:
parent
a95916ab03
commit
eb4ec242b1
@ -2386,14 +2386,6 @@ Some contents...</source>
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
|
||||||
<name>T_TreeView2</name>
|
|
||||||
<message>
|
|
||||||
<location filename="qml/page/T_TreeView2.qml" line="10"/>
|
|
||||||
<source>TreeView2</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
<context>
|
||||||
<name>T_Typography</name>
|
<name>T_Typography</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -2469,14 +2469,6 @@ Some contents...</source>
|
|||||||
<translation type="unfinished">共计选中%1条数据</translation>
|
<translation type="unfinished">共计选中%1条数据</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
|
||||||
<name>T_TreeView2</name>
|
|
||||||
<message>
|
|
||||||
<location filename="qml/page/T_TreeView2.qml" line="10"/>
|
|
||||||
<source>TreeView2</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
<context>
|
||||||
<name>T_Typography</name>
|
<name>T_Typography</name>
|
||||||
<message>
|
<message>
|
||||||
|
@ -101,7 +101,7 @@ void FluTreeModel::checkRow(int row,bool checked){
|
|||||||
}
|
}
|
||||||
itemData->_checked = checked;
|
itemData->_checked = checked;
|
||||||
}
|
}
|
||||||
Q_EMIT layoutChanged();
|
Q_EMIT dataChanged(index(0,0),index(rowCount()-1,0));
|
||||||
QList<FluTreeNode*> data;
|
QList<FluTreeNode*> data;
|
||||||
foreach (auto item, _dataSource) {
|
foreach (auto item, _dataSource) {
|
||||||
if(!item->hasChildren()){
|
if(!item->hasChildren()){
|
||||||
@ -302,8 +302,7 @@ void FluTreeModel::dragAndDrop(int dragIndex,int dropIndex,bool isDropTopArea){
|
|||||||
destChildren->insert(targetIndex,dragItem);
|
destChildren->insert(targetIndex,dragItem);
|
||||||
}
|
}
|
||||||
changePersistentIndex(index(qMin(dragIndex,dropIndex),0),index(qMax(dragIndex,dropIndex),0));
|
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){
|
bool FluTreeModel::hitHasChildrenExpanded(int row){
|
||||||
|
Loading…
Reference in New Issue
Block a user