Skip to content
Permalink
Browse files

astyle 3.1 allows format of lambdas on a single line

  • Loading branch information
3nids committed Jan 23, 2018
1 parent 50e1e78 commit 4125c25bba146680028e1628c67f6878f240fd73
Showing with 2 additions and 8 deletions.
  1. +2 −8 src/app/qgssnappingwidget.cpp
@@ -74,14 +74,8 @@ QgsSnappingWidget::QgsSnappingWidget( QgsProject *project, QgsMapCanvas *canvas,
connect( model, &QgsSnappingLayerTreeModel::rowsInserted, this, &QgsSnappingWidget::onSnappingTreeLayersChanged );
connect( model, &QgsSnappingLayerTreeModel::modelReset, this, &QgsSnappingWidget::onSnappingTreeLayersChanged );
connect( model, &QgsSnappingLayerTreeModel::rowsRemoved, this, &QgsSnappingWidget::onSnappingTreeLayersChanged );
connect( project, &QgsProject::readProject, this, [ = ]
{
model->resetLayerTreeModel();
} );
connect( mProject, &QObject::destroyed, this, [ = ]
{
mLayerTreeView->setModel( nullptr );
} );
connect( mProject, &QgsProject::readProject, this, [ = ] {model->resetLayerTreeModel();} );
connect( mProject, &QObject::destroyed, this, [ = ] {mLayerTreeView->setModel( nullptr );} );
// model->setFlags( 0 );
mLayerTreeView->setModel( model );
mLayerTreeView->resizeColumnToContents( 0 );

0 comments on commit 4125c25

Please sign in to comment.
You can’t perform that action at this time.