mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Merge pull request #5707 from elpaso/bugfix-17262-lineedit-x-button
[ui][bugfix] lineedit add margin for X icon
This commit is contained in:
commit
d1cf7e614f
@ -42,6 +42,11 @@ QgsFilterLineEdit::QgsFilterLineEdit( QWidget *parent, const QString &nullValue
|
||||
mSearchIconSize = QSize( iconSize, iconSize );
|
||||
mSearchIconPixmap = searchIcon.pixmap( mSearchIconSize );
|
||||
|
||||
// Make some space for the clear icon
|
||||
QMargins margins( textMargins( ) );
|
||||
margins.setRight( iconSize );
|
||||
setTextMargins( margins );
|
||||
|
||||
connect( this, &QLineEdit::textChanged, this,
|
||||
&QgsFilterLineEdit::onTextChanged );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user