mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
68de043ecb
commit
f3cf09f4ec
@ -52,6 +52,8 @@ void QgsFilterLineEdit::mousePressEvent( QMouseEvent* e )
|
||||
{
|
||||
if ( !mFocusInEvent )
|
||||
QLineEdit::mousePressEvent( e );
|
||||
else
|
||||
mFocusInEvent = false;
|
||||
}
|
||||
|
||||
void QgsFilterLineEdit::focusInEvent( QFocusEvent* e )
|
||||
|
Loading…
x
Reference in New Issue
Block a user