Skip to content

Commit

Permalink
Adds tooltips to the add/remove variable buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
SrNetoChan authored and nyalldawson committed Feb 20, 2017
1 parent a0f655a commit 3dcb0c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsvariableeditorwidget.cpp
Expand Up @@ -52,10 +52,12 @@ QgsVariableEditorWidget::QgsVariableEditorWidget( QWidget *parent )
mAddButton = new QPushButton(); mAddButton = new QPushButton();
mAddButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/symbologyAdd.svg" ) ) ); mAddButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/symbologyAdd.svg" ) ) );
mAddButton->setEnabled( false ); mAddButton->setEnabled( false );
mAddButton->setToolTip( tr( "Add variable" ) );
horizontalLayout->addWidget( mAddButton ); horizontalLayout->addWidget( mAddButton );
mRemoveButton = new QPushButton(); mRemoveButton = new QPushButton();
mRemoveButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/symbologyRemove.svg" ) ) ); mRemoveButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/symbologyRemove.svg" ) ) );
mRemoveButton->setEnabled( false ); mRemoveButton->setEnabled( false );
mRemoveButton->setToolTip( tr( "Remove variable" ) );
horizontalLayout->addWidget( mRemoveButton ); horizontalLayout->addWidget( mRemoveButton );
verticalLayout->addLayout( horizontalLayout ); verticalLayout->addLayout( horizontalLayout );
connect( mRemoveButton, SIGNAL( clicked() ), this, SLOT( on_mRemoveButton_clicked() ) ); connect( mRemoveButton, SIGNAL( clicked() ), this, SLOT( on_mRemoveButton_clicked() ) );
Expand Down

0 comments on commit 3dcb0c4

Please sign in to comment.