Skip to content
Permalink
Browse files

Revert "followup 9acfe52: better way to emit the signal"

This reverts commit c823bcd.
  • Loading branch information
m-kuhn committed Sep 16, 2015
1 parent 0826290 commit 015622e98db45ba63a982a291e918de78d489fff
@@ -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";
@@ -106,3 +106,8 @@ bool QgsDefaultSearchWidgetWrapper::valid()
{
return true;
}

void QgsDefaultSearchWidgetWrapper::filterChanged()
{
emit expressionChanged();
}
@@ -42,6 +42,7 @@ class GUI_EXPORT QgsDefaultSearchWidgetWrapper : public QgsSearchWidgetWrapper

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

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

0 comments on commit 015622e

Please sign in to comment.
You can’t perform that action at this time.