From 4e8c679ba097f7f2c05e79945f9ba8475de1d49d Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Mon, 20 Oct 2014 15:47:10 +0200 Subject: [PATCH] SIP update for QgsFilterLineEdit events have not been defined in the sip file, therefore QgsFilterLineEdits created in python did not receive the events, leading to visual glitches. Fix #11372 --- python/gui/qgsfilterlineedit.sip | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/python/gui/qgsfilterlineedit.sip b/python/gui/qgsfilterlineedit.sip index c05f6598b922..e34646f837d9 100644 --- a/python/gui/qgsfilterlineedit.sip +++ b/python/gui/qgsfilterlineedit.sip @@ -7,7 +7,11 @@ class QgsFilterLineEdit : QLineEdit #include %End public: - QgsFilterLineEdit( QWidget* parent = 0 ); + QgsFilterLineEdit( QWidget* parent = 0, QString nullValue = QString::null ); + + void setNullValue( QString nullValue ); + + QString nullValue() const; /** * Sets the current text with NULL support @@ -40,4 +44,10 @@ class QgsFilterLineEdit : QLineEdit */ void valueChanged( const QString& value ); + protected: + void mousePressEvent( QMouseEvent* e ); + void focusInEvent( QFocusEvent* e ); + void resizeEvent( QResizeEvent* e ); + void changeEvent( QEvent* e ); + void paintEvent( QPaintEvent* e ); };