File tree Expand file tree Collapse file tree 3 files changed +10
-13
lines changed Expand file tree Collapse file tree 3 files changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -851,16 +851,17 @@ Overridden drag enter event
851
851
called when panning is in action, reset indicates end of panning
852
852
%End
853
853
854
- void updateCanvasItemPositions();
855
- %Docstring
856
- called on resize or changed extent to notify canvas items to change their rectangle
857
- %End
858
-
859
854
860
855
861
856
void updateDatumTransformEntries();
862
857
%Docstring
863
858
Make sure the datum transform store is properly populated
859
+ %End
860
+
861
+ protected slots:
862
+ void updateCanvasItemPositions();
863
+ %Docstring
864
+ called on resize or changed extent to notify canvas items to change their rectangle
864
865
%End
865
866
866
867
}; // class QgsMapCanvas
Original file line number Diff line number Diff line change @@ -867,8 +867,6 @@ void QgsMapCanvas::zoomToPreviousExtent()
867
867
// update controls' enabled state
868
868
emit zoomLastStatusChanged ( mLastExtentIndex > 0 );
869
869
emit zoomNextStatusChanged ( mLastExtentIndex < mLastExtent .size () - 1 );
870
- // notify canvas items of change
871
- updateCanvasItemPositions ();
872
870
}
873
871
874
872
} // zoomToPreviousExtent
@@ -1337,9 +1335,6 @@ void QgsMapCanvas::resizeEvent( QResizeEvent *e )
1337
1335
1338
1336
moveCanvasContents ( true );
1339
1337
1340
- // notify canvas items of change
1341
- updateCanvasItemPositions ();
1342
-
1343
1338
updateScale ();
1344
1339
1345
1340
// refresh();
Original file line number Diff line number Diff line change @@ -716,9 +716,6 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
716
716
// ! called when panning is in action, reset indicates end of panning
717
717
void moveCanvasContents ( bool reset = false );
718
718
719
- // ! called on resize or changed extent to notify canvas items to change their rectangle
720
- void updateCanvasItemPositions ();
721
-
722
719
// / implementation struct
723
720
class CanvasProperties ;
724
721
@@ -735,6 +732,10 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
735
732
// ! Make sure the datum transform store is properly populated
736
733
void updateDatumTransformEntries ();
737
734
735
+ protected slots:
736
+ // ! called on resize or changed extent to notify canvas items to change their rectangle
737
+ void updateCanvasItemPositions ();
738
+
738
739
private slots:
739
740
740
741
void layerRepaintRequested ( bool deferred );
You can’t perform that action at this time.
0 commit comments