File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -404,15 +404,15 @@ void QgsAtlasCompositionWidget::on_mAtlasFeatureFilterCheckBox_stateChanged( int
404
404
updateAtlasFeatures ();
405
405
}
406
406
407
- void QgsAtlasCompositionWidget::on_mAtlasFeatureFilterEdit_textChanged ( const QString& text )
407
+ void QgsAtlasCompositionWidget::on_mAtlasFeatureFilterEdit_editingFinished ( )
408
408
{
409
409
QgsAtlasComposition* atlasMap = &mComposition ->atlasComposition ();
410
410
if ( !atlasMap )
411
411
{
412
412
return ;
413
413
}
414
414
415
- atlasMap->setFeatureFilter ( text );
415
+ atlasMap->setFeatureFilter ( mAtlasFeatureFilterEdit -> text () );
416
416
updateAtlasFeatures ();
417
417
}
418
418
@@ -431,8 +431,9 @@ void QgsAtlasCompositionWidget::on_mAtlasFeatureFilterButton_clicked()
431
431
QString expression = exprDlg.expressionText ();
432
432
if ( !expression.isEmpty () )
433
433
{
434
- // will emit a textChanged signal
435
434
mAtlasFeatureFilterEdit ->setText ( expression );
435
+ atlasMap->setFeatureFilter ( mAtlasFeatureFilterEdit ->text () );
436
+ updateAtlasFeatures ();
436
437
}
437
438
}
438
439
}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class QgsAtlasCompositionWidget:
47
47
void on_mAtlasSortFeatureCheckBox_stateChanged ( int state );
48
48
void on_mAtlasSortFeatureKeyComboBox_currentIndexChanged ( int index );
49
49
void on_mAtlasSortFeatureDirectionButton_clicked ();
50
- void on_mAtlasFeatureFilterEdit_textChanged ( const QString& text );
50
+ void on_mAtlasFeatureFilterEdit_editingFinished ( );
51
51
void on_mAtlasFeatureFilterButton_clicked ();
52
52
void on_mAtlasFeatureFilterCheckBox_stateChanged ( int state );
53
53
void on_mAtlasMarginSpinBox_valueChanged ( int value );
You can’t perform that action at this time.
0 commit comments