Skip to content
Permalink
Browse files

Fix apply search filter from attribute table and minor fixes

  • Loading branch information
m-kuhn committed Sep 17, 2015
1 parent 754f2dc commit 5ac52173f92da0cd5d4aed1effa5bba15c2c9ab9
@@ -309,7 +309,7 @@ void QgsAttributeTableDialog::keyPressEvent( QKeyEvent* event )

void QgsAttributeTableDialog::columnBoxInit()
{
Q_FOREACH( QAction* a, mFilterColumnsMenu->actions() )
Q_FOREACH ( QAction* a, mFilterColumnsMenu->actions() )
{
mFilterColumnsMenu->removeAction( a );
mFilterActionMapper->removeMappings( a );
@@ -329,7 +329,7 @@ void QgsAttributeTableDialog::columnBoxInit()

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

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

@@ -36,7 +36,7 @@ QString QgsDefaultSearchWidgetWrapper::expression()
return mExpression;
}

void QgsDefaultSearchWidgetWrapper::setCaseString( int caseSensitiveCheckState )
void QgsDefaultSearchWidgetWrapper::setCaseString( Qt::CheckState caseSensitiveCheckState )
{
if ( caseSensitiveCheckState == Qt::Checked )
{
@@ -41,7 +41,7 @@ class GUI_EXPORT QgsDefaultSearchWidgetWrapper : public QgsSearchWidgetWrapper
void setExpression( QString exp ) override;

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

protected:

0 comments on commit 5ac5217

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