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 0f5f094
Showing 1 changed file with 0 additions and 5 deletions.
@@ -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.