Skip to content

Commit 015622e

Browse files
committedSep 16, 2015
Revert "followup 9acfe52: better way to emit the signal"
This reverts commit c823bcd.
1 parent 0826290 commit 015622e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎src/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void QgsDefaultSearchWidgetWrapper::initWidget( QWidget* widget )
9696
mContainer->layout()->addWidget( mLineEdit );
9797
mContainer->layout()->addWidget( mCheckbox );
9898
connect( mLineEdit, SIGNAL( textChanged( QString ) ), this, SLOT( setExpression( QString ) ) );
99-
connect( mLineEdit, SIGNAL( returnPressed() ), this, SIGNAL( expressionChanged() ) );
99+
connect( mLineEdit, SIGNAL( returnPressed() ), this, SLOT( filterChanged() ) );
100100
connect( mCheckbox, SIGNAL( stateChanged( int ) ), this, SLOT( setCaseString( int ) ) );
101101
mCheckbox->setChecked( Qt::Unchecked );
102102
mCaseString = "ILIKE";
@@ -106,3 +106,8 @@ bool QgsDefaultSearchWidgetWrapper::valid()
106106
{
107107
return true;
108108
}
109+
110+
void QgsDefaultSearchWidgetWrapper::filterChanged()
111+
{
112+
emit expressionChanged();
113+
}

‎src/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class GUI_EXPORT QgsDefaultSearchWidgetWrapper : public QgsSearchWidgetWrapper
4242

4343
private slots:
4444
void setCaseString( int );
45+
void filterChanged();
4546

4647
protected:
4748
QWidget* createWidget( QWidget* parent ) override;

0 commit comments

Comments
 (0)
Please sign in to comment.