Skip to content
Permalink
Browse files

Remove min size from QgsFilterLineEdit

Now the widget gracefully handles shrinking
  • Loading branch information
nyalldawson committed Sep 8, 2016
1 parent a90217d commit 0f5f09401e58b96f0515ce8e379d1fddfa646f4c
Showing with 0 additions and 5 deletions.
  1. +0 −5 src/gui/qgsfilterlineedit.cpp
@@ -40,11 +40,6 @@ QgsFilterLineEdit::QgsFilterLineEdit( QWidget* parent, const QString& nullValue

connect( this, SIGNAL( textChanged( const QString& ) ), this,
SLOT( onTextChanged( const QString& ) ) );

int frameWidth = style()->pixelMetric( QStyle::PM_DefaultFrameWidth );
QSize msz = minimumSizeHint();
setMinimumSize( qMax( msz.width(), mClearIconSize.width() + frameWidth * 2 + 2 ),
qMax( msz.height(), mClearIconSize.height() + frameWidth * 2 + 2 ) );
}

void QgsFilterLineEdit::mousePressEvent( QMouseEvent* e )

0 comments on commit 0f5f094

Please sign in to comment.
You can’t perform that action at this time.