Skip to content

Commit

Permalink
[ui][processing] Update extent parameter widget button to match look …
Browse files Browse the repository at this point in the history
…and behavior of its scale counterpart
  • Loading branch information
nirvn committed Jan 6, 2022
1 parent 47715fe commit 0e150e8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gui/qgsextentwidget.cpp
Expand Up @@ -15,6 +15,7 @@

#include "qgsextentwidget.h"

#include "qgsapplication.h"
#include "qgslogger.h"
#include "qgscoordinatetransform.h"
#include "qgsmapcanvas.h"
Expand Down Expand Up @@ -59,8 +60,12 @@ QgsExtentWidget::QgsExtentWidget( QWidget *parent, WidgetStyle style )

mMenu->addMenu( mLayerMenu );

mCondensedToolButton->setToolTip( tr( "Set to current map canvas extent" ) );
mCondensedToolButton->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionMapIdentification.svg" ) ) );
connect( mCondensedToolButton, &QAbstractButton::clicked, this, &QgsExtentWidget::setOutputExtentFromCurrent );

mCondensedToolButton->setMenu( mMenu );
mCondensedToolButton->setPopupMode( QToolButton::InstantPopup );
mCondensedToolButton->setPopupMode( QToolButton::MenuButtonPopup );

mXMinLineEdit->setValidator( new QgsDoubleValidator( this ) );
mXMaxLineEdit->setValidator( new QgsDoubleValidator( this ) );
Expand Down

0 comments on commit 0e150e8

Please sign in to comment.