forked from qt-creator/qt-creator
Clean up some lambdas
Change-Id: Id947c0935b1aa4579e1c64d3e510db41103fbe27 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -131,11 +131,11 @@ void QmlJSOutlineWidget::setEditor(QmlJSEditorWidget *editor)
|
||||
|
||||
m_filterModel->setSourceModel(m_editor->qmlJsEditorDocument()->outlineModel());
|
||||
m_treeView->expandAll();
|
||||
connect(m_editor->qmlJsEditorDocument()->outlineModel(), &QAbstractItemModel::modelAboutToBeReset, m_treeView, [this]() {
|
||||
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, m_treeView, [this]() {
|
||||
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