mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
Fix cursor not always reset when clearing widget
This commit is contained in:
parent
d959384c8b
commit
228ff23d81
@ -107,7 +107,12 @@ void QgsFilterLineEdit::clearValue()
|
||||
case ClearToDefault:
|
||||
setText( mDefaultValue );
|
||||
break;
|
||||
}
|
||||
|
||||
if ( mClearHover )
|
||||
{
|
||||
setCursor( Qt::IBeamCursor );
|
||||
mClearHover = false;
|
||||
}
|
||||
|
||||
setModified( true );
|
||||
@ -151,6 +156,12 @@ void QgsFilterLineEdit::onTextChanged( const QString &text )
|
||||
setStyleSheet( mStyleSheet );
|
||||
emit valueChanged( text );
|
||||
}
|
||||
|
||||
if ( mClearHover && !shouldShowClear() )
|
||||
{
|
||||
setCursor( Qt::IBeamCursor );
|
||||
mClearHover = false;
|
||||
}
|
||||
}
|
||||
|
||||
bool QgsFilterLineEdit::shouldShowClear() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user