mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-23 00:05:43 -04:00
Adds tooltips to the add/remove variable buttons
This commit is contained in:
parent
a0f655add1
commit
3dcb0c44c0
@ -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() ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user