debugger: assume that not-known-to-be-simple types have children

This might lead to false positives in corner cases like empty structures
but speed up the display of arrays and lists of user-defined types a lot.
This commit is contained in:
hjk
2009-07-14 11:21:52 +02:00
parent 92a0f39fe1
commit 4bf3d32f61
3 changed files with 26 additions and 2 deletions

View File

@@ -180,8 +180,17 @@ void WatchData::setType(const QString &str)
changed = false;
}
setTypeUnneeded();
if (isIntOrFloatType(type))
setHasChildren(false);
switch (guessChildren(type)) {
case HasChildren:
setHasChildren(true);
break;
case HasNoChildren:
setHasChildren(false);
break;
case HasPossiblyChildren:
setHasChildren(true); // FIXME: bold assumption
break;
}
}
void WatchData::setAddress(const QString &str)