Skip to content

Commit

Permalink
followup 9acfe52: better way to emit the signal
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Sep 16, 2015
1 parent 9acfe52 commit c823bcd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions 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, SLOT( filterChanged() ) );
connect( mLineEdit, SIGNAL( returnPressed() ), this, SIGNAL( expressionChanged() ) );
connect( mCheckbox, SIGNAL( stateChanged( int ) ), this, SLOT( setCaseString( int ) ) );
mCheckbox->setChecked( Qt::Unchecked );
mCaseString = "ILIKE";
Expand All @@ -106,8 +106,3 @@ bool QgsDefaultSearchWidgetWrapper::valid()
{
return true;
}

void QgsDefaultSearchWidgetWrapper::filterChanged()
{
emit expressionChanged();
}
1 change: 0 additions & 1 deletion src/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.h
Expand Up @@ -42,7 +42,6 @@ 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 c823bcd

Please sign in to comment.