summaryrefslogtreecommitdiffstats
path: root/smtreeitem.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-09-28 08:55:45 +0200
committerArno <am@disconnect.de>2013-09-28 08:55:45 +0200
commit697541ea2c50ba97fc4b4e31e9e7c4d82be51899 (patch)
tree1f8e724c653a1f69fe0ece21dcb5409300af87e3 /smtreeitem.h
parent09df993cd04065196279ce2c8c375df0d9080f78 (diff)
downloadSheMov-697541ea2c50ba97fc4b4e31e9e7c4d82be51899.tar.gz
SheMov-697541ea2c50ba97fc4b4e31e9e7c4d82be51899.tar.bz2
SheMov-697541ea2c50ba97fc4b4e31e9e7c4d82be51899.zip
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.
Diffstat (limited to 'smtreeitem.h')
-rw-r--r--smtreeitem.h4
1 files changed, 2 insertions, 2 deletions
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<QVariant> &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<SmTreeItem*> mChildren;
QList<QVariant> mData;
QVariant mForegroundColor;