Debugger: Fix tooltips

Fixes: QTCREATORBUG-19574
Fixes: QTCREATORBUG-23807
Change-Id: I61f997e69f4a747aff8c5e1044bb6d856494ae47
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Viacheslav Tertychnyi
2020-04-02 18:18:04 +03:00
parent 3af1a7b4cf
commit e0e5334d83
6 changed files with 12 additions and 4 deletions

View File

@@ -2358,6 +2358,10 @@ void DebuggerEngine::updateItem(const QString &iname)
QTC_CHECK(item);
WatchModelBase *model = handler->model();
QTC_CHECK(model);
if (item && !item->wantsChildren) {
updateToolTips();
return;
}
if (item && !model->hasChildren(model->indexForItem(item))) {
handler->notifyUpdateStarted(UpdateParameters(iname));
item->setValue(decodeData({}, "notaccessible"));