TreeModel: Add model pointer to TreeItem

... and use the items themselves as main entry point for
item related operations.

With non-uniform tree items it's easier to have item specific
functionality directly in the item implementation instead of
the model.

Change-Id: I4e9b7db98d16b91ddef81917417691129bb83621
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-01-14 09:09:15 +01:00
parent 6bc0b9e5d3
commit 7e522c8a37
8 changed files with 130 additions and 79 deletions

View File

@@ -214,9 +214,6 @@ public:
Breakpoint breakpointById(BreakpointModelId id) const;
signals:
void requestExpansion(QModelIndex);
private:
friend class BreakpointItem;
friend class Breakpoint;