diff options
Diffstat (limited to 'mappingtreemodel.cpp')
-rw-r--r-- | mappingtreemodel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mappingtreemodel.cpp b/mappingtreemodel.cpp index ec60da4..4a9e5aa 100644 --- a/mappingtreemodel.cpp +++ b/mappingtreemodel.cpp @@ -477,6 +477,10 @@ QList<int> MappingTreeResultModel::mappingsIds() const { return mappingIdsRecursive(root()); } +void MappingTreeResultModel::clearData(){ + setRoot(new SmTreeItem(NumFields)); +} + int MappingTreeResultModel::hasChild(SmTreeItem *item, const QVariant &name, int column) const{ for(int i = 0; i < item->childCount(); ++i){ if(item->child(i)->data(column) == name){ |