Skip to content
Permalink
Browse files

Fix cursor not always reset when clearing widget

  • Loading branch information
nyalldawson committed Sep 8, 2016
1 parent d959384 commit 228ff23d81a5001a3b323902081264931731a8ef
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/gui/qgsfilterlineedit.cpp
@@ -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

0 comments on commit 228ff23

Please sign in to comment.
You can’t perform that action at this time.