Skip to content

Commit

Permalink
[composer ui] fix tooltip for add shape action in composer
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Jul 29, 2015
1 parent d6d5be9 commit e980e76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/composer/qgscomposer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit e980e76

Please sign in to comment.