Skip to content
Permalink
Browse files

Add "scale area / scale diameter" radio buttons to scale menu

  • Loading branch information
m-kuhn committed Aug 10, 2012
1 parent e0e5f1a commit f378a2ae519a21ce756f4599526bcd0a80e73d8f
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/gui/symbology-ng/qgsrendererv2widget.cpp
@@ -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 );
}

0 comments on commit f378a2a

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