+ void customEvent(QEvent *event) override;
+
+private:
+ QList<AbstractTreeItem *> _childItems;
+ Qt::ItemFlags _flags;
+ TreeItemFlags _treeItemFlags;
+
+ void removeChildLater(AbstractTreeItem *child);
+ inline void checkForDeletion()
+ {
+ if (treeItemFlags() & DeleteOnLastChildRemoved && childCount() == 0) parent()->removeChildLater(this);
+ }
+};
+
+
+/*****************************************
+ * SimpleTreeItem
+ *****************************************/
+class CLIENT_EXPORT SimpleTreeItem : public AbstractTreeItem
+{
+ Q_OBJECT
+
+public:
+ SimpleTreeItem(QList<QVariant> data, AbstractTreeItem *parent = nullptr);
+
+ QVariant data(int column, int role) const override;
+ bool setData(int column, const QVariant &value, int role) override;
+
+ int columnCount() const override;