diff options
author | Arno <am@disconnect.de> | 2014-07-08 11:26:39 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2014-07-08 11:26:39 +0200 |
commit | d73a297c2daed1b70625d19a70cee48db192956f (patch) | |
tree | 744b1909eb7561830aed637c3d26543ac7fde049 /mappingtreemodel.h | |
parent | a115bc6bf4ddd96bee92c5c7cd2c2858a86e97e6 (diff) | |
download | SheMov-d73a297c2daed1b70625d19a70cee48db192956f.tar.gz SheMov-d73a297c2daed1b70625d19a70cee48db192956f.tar.bz2 SheMov-d73a297c2daed1b70625d19a70cee48db192956f.zip |
Fix MappingTreeResultModel for good
removeRows and insertRows is buggy. Unfortunately I can't figure out
how... So make it easy and reset the model on inserts and removals.
Diffstat (limited to 'mappingtreemodel.h')
-rw-r--r-- | mappingtreemodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mappingtreemodel.h b/mappingtreemodel.h index a730aaa..1b5f3ea 100644 --- a/mappingtreemodel.h +++ b/mappingtreemodel.h @@ -90,6 +90,7 @@ class MappingTreeResultModel : public SmTreeModel { public slots: void addItem(const MappingData &data); + void removeItem(const QModelIndex &idx); private: int hasChild(SmTreeItem *item, const QVariant &name, int column = 0) const; |