forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.3' into 4.4
Change-Id: Ifb1dcc847ba4b32a79b349955fad5207e402cb7b
This commit is contained in:
@@ -125,12 +125,12 @@ void QmlJSOutlineWidget::setEditor(QmlJSEditorWidget *editor)
|
||||
|
||||
m_filterModel->setSourceModel(m_editor->qmlJsEditorDocument()->outlineModel());
|
||||
m_treeView->expandAll();
|
||||
connect(m_editor->qmlJsEditorDocument()->outlineModel(), &QAbstractItemModel::modelAboutToBeReset, [this]() {
|
||||
if (m_treeView && m_treeView->selectionModel())
|
||||
connect(m_editor->qmlJsEditorDocument()->outlineModel(), &QAbstractItemModel::modelAboutToBeReset, m_treeView, [this]() {
|
||||
if (m_treeView->selectionModel())
|
||||
m_treeView->selectionModel()->blockSignals(true);
|
||||
});
|
||||
connect(m_editor->qmlJsEditorDocument()->outlineModel(), &QAbstractItemModel::modelReset, [this]() {
|
||||
if (m_treeView && m_treeView->selectionModel())
|
||||
connect(m_editor->qmlJsEditorDocument()->outlineModel(), &QAbstractItemModel::modelReset, m_treeView, [this]() {
|
||||
if (m_treeView->selectionModel())
|
||||
m_treeView->selectionModel()->blockSignals(false);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user