Skip to content

Commit

Permalink
Use qgis::overload
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed May 28, 2019
1 parent 1e0e066 commit 062f963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/layout/qgslayoutatlaswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ QgsLayoutAtlasWidget::QgsLayoutAtlasWidget( QWidget *parent, QgsPrintLayout *lay
{
mAtlasFileFormat->addItem( QString( formats.at( i ) ) );
}
connect( mAtlasFileFormat, static_cast<void ( QComboBox::* )( int )>( &QComboBox::currentIndexChanged ), this, [ = ]( int ) { changeFileFormat(); } );
connect( mAtlasFileFormat, qgis::overload<int>::of( &QComboBox::currentIndexChanged ), this, [ = ]( int ) { changeFileFormat(); } );

// Disconnect when layout is destroyed
connect( layout, &QgsPrintLayout::destroyed, [ = ]
Expand Down

0 comments on commit 062f963

Please sign in to comment.