Skip to content
Permalink
Browse files

make QgsMapCanvas::updateCanvasItemPositions a protected slot

  • Loading branch information
3nids committed Jun 15, 2017
1 parent 40e5dda commit ae6ad5c5990bc0991ad926adcd7f55aa8a06f3a5
Showing with 10 additions and 13 deletions.
  1. +6 −5 python/gui/qgsmapcanvas.sip
  2. +0 −5 src/gui/qgsmapcanvas.cpp
  3. +4 −3 src/gui/qgsmapcanvas.h
@@ -851,16 +851,17 @@ Overridden drag enter event
called when panning is in action, reset indicates end of panning
%End

void updateCanvasItemPositions();
%Docstring
called on resize or changed extent to notify canvas items to change their rectangle
%End



void updateDatumTransformEntries();
%Docstring
Make sure the datum transform store is properly populated
%End

protected slots:
void updateCanvasItemPositions();
%Docstring
called on resize or changed extent to notify canvas items to change their rectangle
%End

}; // class QgsMapCanvas
@@ -867,8 +867,6 @@ void QgsMapCanvas::zoomToPreviousExtent()
// update controls' enabled state
emit zoomLastStatusChanged( mLastExtentIndex > 0 );
emit zoomNextStatusChanged( mLastExtentIndex < mLastExtent.size() - 1 );
// notify canvas items of change
updateCanvasItemPositions();
}

} // zoomToPreviousExtent
@@ -1337,9 +1335,6 @@ void QgsMapCanvas::resizeEvent( QResizeEvent *e )

moveCanvasContents( true );

// notify canvas items of change
updateCanvasItemPositions();

updateScale();

//refresh();
@@ -716,9 +716,6 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
//! called when panning is in action, reset indicates end of panning
void moveCanvasContents( bool reset = false );

//! called on resize or changed extent to notify canvas items to change their rectangle
void updateCanvasItemPositions();

/// implementation struct
class CanvasProperties;

@@ -735,6 +732,10 @@ class GUI_EXPORT QgsMapCanvas : public QGraphicsView
//! Make sure the datum transform store is properly populated
void updateDatumTransformEntries();

protected slots:
//! called on resize or changed extent to notify canvas items to change their rectangle
void updateCanvasItemPositions();

private slots:

void layerRepaintRequested( bool deferred );

0 comments on commit ae6ad5c

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