forked from qt-creator/qt-creator
Debugger: Expand items in QML Inspector on first click
Task-number: QTCREATORBUG-14210 Change-Id: I4c4409476467bb7008cb6806018371e9134437a9 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -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.
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user