Commit 69bf5e43 authored by hjk's avatar hjk
Browse files

Debugger: Expand items in QML Inspector on first click



Task-number: QTCREATORBUG-14210
Change-Id: I4c4409476467bb7008cb6806018371e9134437a9
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent d7251492
......@@ -686,6 +686,7 @@ void QmlInspectorAgent::insertObjectInTree(const ObjectReference &object)
m_objectToSelect = -1;
}
m_debuggerEngine->watchHandler()->updateWatchersWindow();
m_debuggerEngine->watchHandler()->reexpandItems();
}
void QmlInspectorAgent::buildDebugIdHashRecursive(const ObjectReference &ref)
......
......@@ -1268,6 +1268,11 @@ void WatchHandler::notifyUpdateFinished()
emit m_model->updateFinished();
}
void WatchHandler::reexpandItems()
{
m_model->reexpandItems();
}
void WatchHandler::removeItemByIName(const QByteArray &iname)
{
WatchItem *item = m_model->findItem(iname);
......
......@@ -201,6 +201,8 @@ public:
void notifyUpdateStarted(const QList<QByteArray> &inames = {});
void notifyUpdateFinished();
void reexpandItems();
private:
WatchModel *m_model; // Owned.
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment