Skip to content
Permalink
Browse files

Fix selection after focus-in by mouse in QgsFilterLineEdit

After focusing a QgsFilterLineEdit with the mouse, the end of the selection was
"attached" to the end of the content.
This was caused by overwriting Qt's mousePressEvent, that is responsible for
handling the selection without handing back the responsibility after the focus
in event was finished.

Fix #11373
  • Loading branch information
m-kuhn committed Oct 13, 2014
1 parent 68de043 commit f3cf09f4ec4daeaa7c06c2f7f4cf7e90a48a81dd
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgsfilterlineedit.cpp
@@ -52,6 +52,8 @@ void QgsFilterLineEdit::mousePressEvent( QMouseEvent* e )
{
if ( !mFocusInEvent )
QLineEdit::mousePressEvent( e );
else
mFocusInEvent = false;
}

void QgsFilterLineEdit::focusInEvent( QFocusEvent* e )

0 comments on commit f3cf09f

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