Skip to content

Commit

Permalink
astyle 3.1 allows format of lambdas on a single line
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 23, 2018
1 parent 50e1e78 commit 4125c25
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/app/qgssnappingwidget.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 4125c25

Please sign in to comment.