Skip to content

Commit

Permalink
Add "scale area / scale diameter" radio buttons to scale menu
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 10, 2012
1 parent e0e5f1a commit f378a2a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/gui/symbology-ng/qgsrendererv2widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,18 @@ QgsRendererV2DataDefinedMenus::QgsRendererV2DataDefinedMenus( QMenu* menu, const
populateMenu( mRotationMenu, SLOT( rotationFieldSelected() ), rotationField );
populateMenu( mSizeScaleMenu, SLOT( sizeScaleFieldSelected() ), sizeScaleField );

mSizeScaleMenu->addSeparator();
QAction* aScaleByArea = mSizeScaleMenu->addAction( tr( "Scale area" ), this, SLOT( sizeScaleFieldSelected() ) );
QAction* aScaleByDiameter = mSizeScaleMenu->addAction( tr( "Scale diameter" ), this, SLOT( sizeScaleFieldSelected() ) );

aScaleByArea->setCheckable( true );
aScaleByDiameter->setCheckable( true );

QActionGroup *myGroup = new QActionGroup( mSizeScaleMenu );

myGroup->addAction( aScaleByArea );
myGroup->addAction( aScaleByDiameter );

menu->addMenu( mRotationMenu );
menu->addMenu( mSizeScaleMenu );
}
Expand Down

0 comments on commit f378a2a

Please sign in to comment.