Merge pull request #2374 from slarosa/editor_widget_take_2

Attribute table filter: follow up #2316 and 5ac5217

Fix #13486 Don't hide search widget in attribute table when typing
Properly connect the signals for the search case checkbox on the attribute table filter
This commit is contained in:
Matthias Kuhn 2015-10-18 11:09:21 +02:00
commit 63cea76313
2 changed files with 2 additions and 3 deletions

View File

@ -36,7 +36,7 @@ QString QgsDefaultSearchWidgetWrapper::expression()
return mExpression;
}
void QgsDefaultSearchWidgetWrapper::setCaseString( Qt::CheckState caseSensitiveCheckState )
void QgsDefaultSearchWidgetWrapper::setCaseString( int caseSensitiveCheckState )
{
if ( caseSensitiveCheckState == Qt::Checked )
{
@ -74,7 +74,6 @@ void QgsDefaultSearchWidgetWrapper::setExpression( QString exp )
"%" + exp.replace( "'", "''" ) + "%" ); // escape quotes
}
mExpression = str;
emit expressionChanged( mExpression );
}
QWidget* QgsDefaultSearchWidgetWrapper::createWidget( QWidget* parent )

View File

@ -41,7 +41,7 @@ class GUI_EXPORT QgsDefaultSearchWidgetWrapper : public QgsSearchWidgetWrapper
void setExpression( QString exp ) override;
private slots:
void setCaseString( Qt::CheckState );
void setCaseString( int caseSensitiveCheckState );
void filterChanged();
protected: