mirror of
https://github.com/qgis/QGIS.git
synced 2025-05-01 00:02:48 -04:00
Remove min size from QgsFilterLineEdit
Now the widget gracefully handles shrinking
This commit is contained in:
parent
a90217db16
commit
0f5f09401e
@ -40,11 +40,6 @@ QgsFilterLineEdit::QgsFilterLineEdit( QWidget* parent, const QString& nullValue
|
|||||||
|
|
||||||
connect( this, SIGNAL( textChanged( const QString& ) ), this,
|
connect( this, SIGNAL( textChanged( const QString& ) ), this,
|
||||||
SLOT( onTextChanged( const QString& ) ) );
|
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 )
|
void QgsFilterLineEdit::mousePressEvent( QMouseEvent* e )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user