diff options
author | Arno <am@disconnect.de> | 2012-03-03 06:36:22 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-03-03 06:36:22 +0100 |
commit | 5d1e566d275b47fa590fb9e9879b9a1f970fc3ba (patch) | |
tree | 5d1f2d6f68de9318f21bb1a6145944b833aa883e /mappingtreemodel.cpp | |
parent | 08861cc269ba6126ec7fa3bfad4f946fb60d3d98 (diff) | |
download | SheMov-5d1e566d275b47fa590fb9e9879b9a1f970fc3ba.tar.gz SheMov-5d1e566d275b47fa590fb9e9879b9a1f970fc3ba.tar.bz2 SheMov-5d1e566d275b47fa590fb9e9879b9a1f970fc3ba.zip |
Impement editing of picture mappings
Make it possible to edit picture mappings on archived pictures.
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){ |