Skip to content

Commit

Permalink
Revert "followup 9acfe52: better way to emit the signal"
Browse files Browse the repository at this point in the history
This reverts commit c823bcd.
  • Loading branch information
m-kuhn committed Sep 16, 2015
1 parent 0826290 commit 015622e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.cpp
Expand Up @@ -96,7 +96,7 @@ void QgsDefaultSearchWidgetWrapper::initWidget( QWidget* widget )
mContainer->layout()->addWidget( mLineEdit );
mContainer->layout()->addWidget( mCheckbox );
connect( mLineEdit, SIGNAL( textChanged( QString ) ), this, SLOT( setExpression( QString ) ) );
connect( mLineEdit, SIGNAL( returnPressed() ), this, SIGNAL( expressionChanged() ) );
connect( mLineEdit, SIGNAL( returnPressed() ), this, SLOT( filterChanged() ) );
connect( mCheckbox, SIGNAL( stateChanged( int ) ), this, SLOT( setCaseString( int ) ) );
mCheckbox->setChecked( Qt::Unchecked );
mCaseString = "ILIKE";
Expand All @@ -106,3 +106,8 @@ bool QgsDefaultSearchWidgetWrapper::valid()
{
return true;
}

void QgsDefaultSearchWidgetWrapper::filterChanged()
{
emit expressionChanged();
}
1 change: 1 addition & 0 deletions src/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.h
Expand Up @@ -42,6 +42,7 @@ class GUI_EXPORT QgsDefaultSearchWidgetWrapper : public QgsSearchWidgetWrapper

private slots:
void setCaseString( int );
void filterChanged();

protected:
QWidget* createWidget( QWidget* parent ) override;
Expand Down

0 comments on commit 015622e

Please sign in to comment.