Debugger: Use TypedTreeItem's typed parent ability for WatchItems

Less "user code".

Change-Id: Idf4e0a950761bd0184f2844c45415d5bdb8cd51a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2018-03-08 15:13:42 +01:00
parent 2626e1629f
commit c050d916ce
3 changed files with 7 additions and 14 deletions

View File

@@ -39,7 +39,7 @@ namespace Internal {
class GdbMi;
class WatchItem : public Utils::TypedTreeItem<WatchItem>
class WatchItem : public Utils::TypedTreeItem<WatchItem, WatchItem>
{
public:
WatchItem();
@@ -58,8 +58,6 @@ public:
QVariant editValue() const;
int editType() const;
WatchItem *parentItem() const;
static const qint64 InvalidId = -1;
void setHasChildren(bool c) { wantsChildren = c; }