Skip to content
Permalink
Browse files

[composer ui] fix tooltip for add shape action in composer

  • Loading branch information
slarosa committed Jul 29, 2015
1 parent d6d5be9 commit e980e760b4d0e8864a838a1d57dfa8f4e24668f0
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/composer/qgscomposer.cpp
@@ -146,14 +146,15 @@ QgsComposer::QgsComposer( QgisApp *qgis, const QString& title )
mItemActionToolbar->addWidget( alignToolButton );

QToolButton* shapeToolButton = new QToolButton( mItemToolbar );
shapeToolButton->setIcon( QgsApplication::getThemeIcon( "/mActionAddBasicShape.png" ) );
shapeToolButton->setCheckable( true );
shapeToolButton->setPopupMode( QToolButton::InstantPopup );
shapeToolButton->setAutoRaise( true );
shapeToolButton->setToolButtonStyle( Qt::ToolButtonIconOnly );
shapeToolButton->addAction( mActionAddRectangle );
shapeToolButton->addAction( mActionAddTriangle );
shapeToolButton->addAction( mActionAddEllipse );
shapeToolButton->setDefaultAction( mActionAddEllipse );
shapeToolButton->setToolTip( tr( "Add Shape" ) );
mItemToolbar->insertWidget( mActionAddArrow, shapeToolButton );

QActionGroup* toggleActionGroup = new QActionGroup( this );

0 comments on commit e980e76

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