forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/qds/dev' into 12.0
Conflicts: share/qtcreator/qmldesigner/connectionseditor/SuggestionPopup.qml share/qtcreator/themes/dark.creatortheme share/qtcreator/themes/default.creatortheme share/qtcreator/themes/flat-dark.creatortheme share/qtcreator/themes/flat-light.creatortheme share/qtcreator/themes/flat.creatortheme src/libs/utils/CMakeLists.txt src/plugins/CMakeLists.txt src/plugins/qmlprojectmanager/qmlproject.cpp src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp Change-Id: Idd87c281e1aa7b7fd2702473ad55e18563cbfb21
This commit is contained in:
@@ -144,10 +144,15 @@ void QmlJSOutlineWidget::setEditor(QmlJSEditorWidget *editor)
|
||||
|
||||
connect(m_editor, &QmlJSEditorWidget::outlineModelIndexChanged,
|
||||
this, &QmlJSOutlineWidget::updateSelectionInTree);
|
||||
connect(m_editor->qmlJsEditorDocument()->outlineModel(), &QmlOutlineModel::updated, this, [this] () {
|
||||
m_treeView->expandAll();
|
||||
m_editor->updateOutlineIndexNow();
|
||||
});
|
||||
connect(m_editor->qmlJsEditorDocument()->outlineModel(),
|
||||
&QmlOutlineModel::updated,
|
||||
this,
|
||||
[treeView = QPointer(m_treeView), editor = QPointer(m_editor)]() {
|
||||
if (treeView)
|
||||
treeView->expandAll();
|
||||
if (editor)
|
||||
editor->updateOutlineIndexNow();
|
||||
});
|
||||
}
|
||||
|
||||
QList<QAction*> QmlJSOutlineWidget::filterMenuActions() const
|
||||
|
||||
Reference in New Issue
Block a user