Navigation Menu

Skip to content

Commit

Permalink
Remove min size from QgsFilterLineEdit
Browse files Browse the repository at this point in the history
Now the widget gracefully handles shrinking

(cherry-picked from 0f5f094)
  • Loading branch information
nyalldawson committed Sep 8, 2016
1 parent 65b6ad3 commit c022818
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/gui/qgsfilterlineedit.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit c022818

Please sign in to comment.