From 3dcb0c44c09c4cc0afaf2c5eb246f5c322248b68 Mon Sep 17 00:00:00 2001 From: Alexandre Neto Date: Mon, 20 Feb 2017 15:24:23 +0000 Subject: [PATCH] Adds tooltips to the add/remove variable buttons --- src/gui/qgsvariableeditorwidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/qgsvariableeditorwidget.cpp b/src/gui/qgsvariableeditorwidget.cpp index 3994e98529d..40b652b278f 100644 --- a/src/gui/qgsvariableeditorwidget.cpp +++ b/src/gui/qgsvariableeditorwidget.cpp @@ -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() ) );