Skip to content
Permalink
Browse files
[ui][processing] Update extent parameter widget button to match look …
…and behavior of its scale counterpart
  • Loading branch information
nirvn committed Jan 6, 2022
1 parent 47715fe commit 0e150e8822238f3cf9c123aacd03a400f4a8cac8
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/gui/qgsextentwidget.cpp
@@ -15,6 +15,7 @@

#include "qgsextentwidget.h"

#include "qgsapplication.h"
#include "qgslogger.h"
#include "qgscoordinatetransform.h"
#include "qgsmapcanvas.h"
@@ -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 ) );

0 comments on commit 0e150e8

Please sign in to comment.