forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.1'
Change-Id: Ia90424d479936a898705c433e5810c77ae088b2c
This commit is contained in:
@@ -663,6 +663,12 @@ void QmlInspectorAgent::addWatchData(const ObjectReference &obj,
|
||||
propertiesWatch->appendChild(propertyWatch);
|
||||
}
|
||||
|
||||
if (boolSetting(SortStructMembers)) {
|
||||
propertiesWatch->sortChildren([](const WatchItem *item1, const WatchItem *item2) {
|
||||
return item1->name < item2->name;
|
||||
});
|
||||
}
|
||||
|
||||
m_qmlEngine->watchHandler()->insertItem(propertiesWatch);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user