Debugger: Use Utils::TreeModel for watch window

The circle closes, that's where the code came from.

Change-Id: Ic36ab61ec8886c9a2747aeb29a7245df3ef0b6c4
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-01-29 09:58:23 +01:00
parent 37bbc8a4d4
commit a6e9f032e3
7 changed files with 355 additions and 623 deletions

View File

@@ -156,6 +156,15 @@ bool WatchData::isEqual(const WatchData &other) const
&& error == other.error;
}
bool WatchData::isAncestorOf(const QByteArray &childIName) const
{
if (iname.size() >= childIName.size())
return false;
if (!childIName.startsWith(iname))
return false;
return childIName.at(iname.size()) == '.';
}
bool WatchData::isVTablePointer() const
{
// First case: Cdb only. No user type can be named like this, this is safe.