@@ -507,6 +507,8 @@ QgsComposer::QgsComposer( QgisApp *qgis, const QString& title )
507
507
mActionExportAtlasAsImage ->setEnabled ( false );
508
508
mActionExportAtlasAsSVG ->setEnabled ( false );
509
509
mActionExportAtlasAsPDF ->setEnabled ( false );
510
+ QgsAtlasComposition* atlasMap = &mComposition ->atlasComposition ();
511
+ connect ( atlasMap, SIGNAL ( toggled ( bool ) ), this , SLOT ( toggleAtlasControls ( bool ) ) );
510
512
511
513
// Create size grip (needed by Mac OS X for QMainWindow if QStatusBar is not visible)
512
514
// should not be needed now that composer has a status bar?
@@ -857,6 +859,7 @@ void QgsComposer::on_mActionAtlasPreview_triggered( bool checked )
857
859
if ( checked )
858
860
{
859
861
atlasMap->firstFeature ();
862
+ emit ( atlasPreviewFeatureChanged () );
860
863
}
861
864
else
862
865
{
@@ -875,7 +878,7 @@ void QgsComposer::on_mActionAtlasNext_triggered()
875
878
}
876
879
877
880
atlasMap->nextFeature ();
878
-
881
+ emit ( atlasPreviewFeatureChanged () );
879
882
}
880
883
881
884
void QgsComposer::on_mActionAtlasPrev_triggered ()
@@ -887,7 +890,7 @@ void QgsComposer::on_mActionAtlasPrev_triggered()
887
890
}
888
891
889
892
atlasMap->prevFeature ();
890
-
893
+ emit ( atlasPreviewFeatureChanged () );
891
894
}
892
895
893
896
void QgsComposer::on_mActionAtlasFirst_triggered ()
@@ -899,6 +902,7 @@ void QgsComposer::on_mActionAtlasFirst_triggered()
899
902
}
900
903
901
904
atlasMap->firstFeature ();
905
+ emit ( atlasPreviewFeatureChanged () );
902
906
}
903
907
904
908
void QgsComposer::on_mActionAtlasLast_triggered ()
@@ -910,6 +914,7 @@ void QgsComposer::on_mActionAtlasLast_triggered()
910
914
}
911
915
912
916
atlasMap->lastFeature ();
917
+ emit ( atlasPreviewFeatureChanged () );
913
918
}
914
919
915
920
QgsMapCanvas *QgsComposer::mapCanvas ( void )
0 commit comments