Skip to content

Commit 5ac5217

Browse files
committedSep 17, 2015
Fix apply search filter from attribute table and minor fixes
1 parent 754f2dc commit 5ac5217

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎src/app/qgsattributetabledialog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ void QgsAttributeTableDialog::keyPressEvent( QKeyEvent* event )
309309

310310
void QgsAttributeTableDialog::columnBoxInit()
311311
{
312-
Q_FOREACH( QAction* a, mFilterColumnsMenu->actions() )
312+
Q_FOREACH ( QAction* a, mFilterColumnsMenu->actions() )
313313
{
314314
mFilterColumnsMenu->removeAction( a );
315315
mFilterActionMapper->removeMappings( a );
@@ -329,7 +329,7 @@ void QgsAttributeTableDialog::columnBoxInit()
329329

330330
QList<QgsField> fields = mLayer->fields().toList();
331331

332-
Q_FOREACH( const QgsField field, fields )
332+
Q_FOREACH ( const QgsField field, fields )
333333
{
334334
int idx = mLayer->fieldNameIndex( field.name() );
335335
if ( idx < 0 )
@@ -469,7 +469,7 @@ void QgsAttributeTableDialog::filterColumnChanged( QObject* filterAction )
469469
}
470470
else
471471
{
472-
connect( mCurrentSearchWidgetWrapper, SIGNAL( expressionChanged() ), SLOT( filterQueryAccepted() ) );
472+
connect( mCurrentSearchWidgetWrapper, SIGNAL( expressionChanged( QString ) ), SLOT( filterQueryAccepted() ) );
473473
mApplyFilterButton->setVisible( true );
474474
}
475475

‎src/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ QString QgsDefaultSearchWidgetWrapper::expression()
3636
return mExpression;
3737
}
3838

39-
void QgsDefaultSearchWidgetWrapper::setCaseString( int caseSensitiveCheckState )
39+
void QgsDefaultSearchWidgetWrapper::setCaseString( Qt::CheckState caseSensitiveCheckState )
4040
{
4141
if ( caseSensitiveCheckState == Qt::Checked )
4242
{

‎src/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class GUI_EXPORT QgsDefaultSearchWidgetWrapper : public QgsSearchWidgetWrapper
4141
void setExpression( QString exp ) override;
4242

4343
private slots:
44-
void setCaseString( int );
44+
void setCaseString( Qt::CheckState );
4545
void filterChanged();
4646

4747
protected:

0 commit comments

Comments
 (0)
Please sign in to comment.