Skip to content
Permalink
Browse files
QButtonGroup::buttonClicked( int ) doesn't exist anymore
  • Loading branch information
nyalldawson committed Jul 20, 2021
1 parent b6aaf6d commit d16d0311d4791aa7b0d577a8ac70095d967b92fe
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/gui/vector/qgsdiagramproperties.cpp
@@ -187,14 +187,14 @@ QgsDiagramProperties::QgsDiagramProperties( QgsVectorLayer *layer, QWidget *pare
mPlacePointBtnGrp->addButton( radAroundPoint );
mPlacePointBtnGrp->addButton( radOverPoint );
mPlacePointBtnGrp->setExclusive( true );
connect( mPlacePointBtnGrp, static_cast<void ( QButtonGroup::* )( int )>( &QButtonGroup::buttonClicked ), this, &QgsDiagramProperties::updatePlacementWidgets );
connect( mPlacePointBtnGrp, qOverload< QAbstractButton * >( &QButtonGroup::buttonClicked ), this, &QgsDiagramProperties::updatePlacementWidgets );

// setup line placement button group
mPlaceLineBtnGrp = new QButtonGroup( this );
mPlaceLineBtnGrp->addButton( radAroundLine );
mPlaceLineBtnGrp->addButton( radOverLine );
mPlaceLineBtnGrp->setExclusive( true );
connect( mPlaceLineBtnGrp, static_cast<void ( QButtonGroup::* )( int )>( &QButtonGroup::buttonClicked ), this, &QgsDiagramProperties::updatePlacementWidgets );
connect( mPlaceLineBtnGrp, qOverload< QAbstractButton * >( &QButtonGroup::buttonClicked ), this, &QgsDiagramProperties::updatePlacementWidgets );

// setup polygon placement button group
mPlacePolygonBtnGrp = new QButtonGroup( this );
@@ -203,8 +203,7 @@ QgsDiagramProperties::QgsDiagramProperties( QgsVectorLayer *layer, QWidget *pare
mPlacePolygonBtnGrp->addButton( radPolygonPerimeter );
mPlacePolygonBtnGrp->addButton( radInsidePolygon );
mPlacePolygonBtnGrp->setExclusive( true );
connect( mPlacePolygonBtnGrp, static_cast<void ( QButtonGroup::* )( int )>( &QButtonGroup::buttonClicked ), this, &QgsDiagramProperties::updatePlacementWidgets );

connect( mPlacePolygonBtnGrp, qOverload< QAbstractButton * >( &QButtonGroup::buttonClicked ), this, &QgsDiagramProperties::updatePlacementWidgets );

mLabelPlacementComboBox->addItem( tr( "Height" ), QgsDiagramSettings::Height );
mLabelPlacementComboBox->addItem( tr( "x-height" ), QgsDiagramSettings::XHeight );

0 comments on commit d16d031

Please sign in to comment.