From 697541ea2c50ba97fc4b4e31e9e7c4d82be51899 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 28 Sep 2013 08:55:45 +0200 Subject: Fix copy constructor of SmTreeItem Seems the copy constructor of SmTreeItem was botched. After copying a rootItem, some children wouldn't show up. I guess it has something to do with the QHash of the parents. Replace it with an explictit deep copy function where needed. --- smtreeitem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'smtreeitem.h') diff --git a/smtreeitem.h b/smtreeitem.h index a048714..4e5265c 100644 --- a/smtreeitem.h +++ b/smtreeitem.h @@ -15,7 +15,6 @@ class SmTreeItem { public: SmTreeItem(const QList &data, SmTreeItem *parent = 0); SmTreeItem(int rows, SmTreeItem *parent = 0); - SmTreeItem(const SmTreeItem &other); ~SmTreeItem(); void appendChild(SmTreeItem *child); SmTreeItem *child(int row) const; @@ -31,9 +30,10 @@ class SmTreeItem { void setForegroundColor(const QVariant &data); bool insertChild(int where, SmTreeItem *child); bool removeChild(int where, bool deleteChild = true); - + friend class ArchiveCollector; private: + SmTreeItem(const SmTreeItem &other); QList mChildren; QList mData; QVariant mForegroundColor; -- cgit v1.2.3-70-g09d2