forked from qt-creator/qt-creator
QmlInspector: Refresh the view when SortStructMembers changes
This has the effect of sorting the members immediately, rather than the next time something else changes. Change-Id: I3f3cb261f1fb69b6b36914b811a431b045bb49ae Task-number: QTCREATORBUG-16645 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -84,6 +84,8 @@ QmlInspectorAgent::QmlInspectorAgent(QmlEngine *engine, QmlDebugConnection *conn
|
||||
m_debugIdToIname.insert(WatchItem::InvalidId, "inspect");
|
||||
connect(action(ShowQmlObjectTree),
|
||||
&Utils::SavedAction::valueChanged, this, &QmlInspectorAgent::updateState);
|
||||
connect(action(SortStructMembers), &Utils::SavedAction::valueChanged,
|
||||
this, &QmlInspectorAgent::updateState);
|
||||
m_delayQueryTimer.setSingleShot(true);
|
||||
m_delayQueryTimer.setInterval(100);
|
||||
connect(&m_delayQueryTimer, &QTimer::timeout,
|
||||
|
||||
Reference in New Issue
Block a user