File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -213,21 +213,13 @@ bool QgsFilterLineEdit::event( QEvent *event )
213
213
return QLineEdit::event ( event );;
214
214
}
215
215
216
+ // / @cond PRIVATE
216
217
void QgsSpinBoxLineEdit::focusInEvent ( QFocusEvent *e )
217
218
{
218
219
QLineEdit::focusInEvent ( e );
219
- if ( e->reason () == Qt::MouseFocusReason && ( isNull () ) )
220
- {
221
- mWaitingForMouseRelease = true ;
222
- }
223
- }
224
-
225
- void QgsSpinBoxLineEdit::mouseReleaseEvent ( QMouseEvent *e )
226
- {
227
- QLineEdit::mouseReleaseEvent ( e );
228
- if ( mWaitingForMouseRelease )
220
+ if ( isNull () )
229
221
{
230
- mWaitingForMouseRelease = false ;
231
222
clear ();
232
223
}
233
224
}
225
+ // / @endcond
Original file line number Diff line number Diff line change @@ -327,11 +327,6 @@ class SIP_SKIP QgsSpinBoxLineEdit : public QgsFilterLineEdit
327
327
328
328
protected:
329
329
void focusInEvent ( QFocusEvent *e ) override ;
330
- void mouseReleaseEvent ( QMouseEvent *e ) override ;
331
-
332
- private:
333
- bool mWaitingForMouseRelease = false ;
334
-
335
330
};
336
331
// / @endcond
337
332
You can’t perform that action at this time.
0 commit comments