1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

update qqtdicttreemodel

This commit is contained in:
tianduanrui 2020-04-23 21:17:44 +08:00
parent 1818d8b2db
commit 03ddeb1b6d

View File

@ -57,8 +57,8 @@ void QQtDictTreeModel::packDictionaryToTreeModel ( const QQtDictionary& node, QS
QList<QQtDictionary>& l = node.getList();
QStandardItem* item = new QStandardItem;
item->setText ( QString::number ( i + 1 ) );
packDictionaryToTreeModel ( l[i], item );
pobject ? pobject->appendRow ( item ) : appendRow ( item );
packDictionaryToTreeModel ( l[i], item );
}
break;
}
@ -72,8 +72,8 @@ void QQtDictTreeModel::packDictionaryToTreeModel ( const QQtDictionary& node, QS
const QQtDictionary& srcvalue = itor.value();
QStandardItem* item = new QStandardItem;
item->setText ( key );
packDictionaryToTreeModel ( srcvalue, item );
pobject ? pobject->appendRow ( item ) : appendRow ( item );
packDictionaryToTreeModel ( srcvalue, item );
}
break;
}