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
This commit is contained in:
Matthias Kuhn 2014-10-13 10:27:46 +02:00
parent 68de043ecb
commit f3cf09f4ec

View File

@ -52,6 +52,8 @@ void QgsFilterLineEdit::mousePressEvent( QMouseEvent* e )
{
if ( !mFocusInEvent )
QLineEdit::mousePressEvent( e );
else
mFocusInEvent = false;
}
void QgsFilterLineEdit::focusInEvent( QFocusEvent* e )