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

This reverts commit c823bcd63af18031e376a8e2db818b5fd9878ed8.
This commit is contained in:
Matthias Kuhn 2015-09-16 22:10:35 +02:00
parent 0826290c8e
commit 015622e98d
2 changed files with 7 additions and 1 deletions

View File

@ -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();
}

View File

@ -42,6 +42,7 @@ class GUI_EXPORT QgsDefaultSearchWidgetWrapper : public QgsSearchWidgetWrapper
private slots:
void setCaseString( int );
void filterChanged();
protected:
QWidget* createWidget( QWidget* parent ) override;