We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 55f86d5 commit 72a33eaCopy full SHA for 72a33ea
src/gui/qgsfilterlineedit.cpp
@@ -81,15 +81,15 @@ void QgsFilterLineEdit::clear()
81
void QgsFilterLineEdit::changeEvent( QEvent *e )
82
{
83
QLineEdit::changeEvent( e );
84
- if ( !isEnabled() )
+ if ( !isEnabled() || isReadOnly() )
85
btnClear->setVisible( false );
86
else
87
btnClear->setVisible( text() != mNullValue );
88
}
89
90
void QgsFilterLineEdit::onTextChanged( const QString &text )
91
92
- btnClear->setVisible( !isReadOnly() && text != mNullValue );
+ btnClear->setVisible( !isEnabled() && !isReadOnly() && text != mNullValue );
93
94
if ( isNull() )
95
0 commit comments