Adds tooltips to the add/remove variable buttons

This commit is contained in:
Alexandre Neto 2017-02-20 15:24:23 +00:00 committed by Nyall Dawson
parent a0f655add1
commit 3dcb0c44c0

View File

@ -52,10 +52,12 @@ QgsVariableEditorWidget::QgsVariableEditorWidget( QWidget *parent )
mAddButton = new QPushButton();
mAddButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/symbologyAdd.svg" ) ) );
mAddButton->setEnabled( false );
mAddButton->setToolTip( tr( "Add variable" ) );
horizontalLayout->addWidget( mAddButton );
mRemoveButton = new QPushButton();
mRemoveButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/symbologyRemove.svg" ) ) );
mRemoveButton->setEnabled( false );
mRemoveButton->setToolTip( tr( "Remove variable" ) );
horizontalLayout->addWidget( mRemoveButton );
verticalLayout->addLayout( horizontalLayout );
connect( mRemoveButton, SIGNAL( clicked() ), this, SLOT( on_mRemoveButton_clicked() ) );