Skip to content
Permalink
Browse files

Force a refresh after disabling view updates

  • Loading branch information
nyalldawson committed Jan 5, 2018
1 parent 7d8953f commit 70e7185cb55d4569fc8f81b8daba4ff4dda65d72
Showing with 8 additions and 2 deletions.
  1. +0 −1 python/gui/layout/qgslayoutview.sip
  2. +7 −0 src/gui/layout/qgslayoutview.cpp
  3. +1 −1 src/gui/layout/qgslayoutview.h
@@ -265,7 +265,6 @@ Returns the delta (in layout coordinates) by which to move items
for the given key ``event``.
%End


public slots:

void zoomFull();
@@ -446,6 +446,13 @@ QPointF QgsLayoutView::deltaForKeyEvent( QKeyEvent *event )
return QPointF( deltaX, deltaY );
}

void QgsLayoutView::setPaintingEnabled( bool enabled )
{
mPaintingEnabled = enabled;
if ( enabled )
update();
}

void QgsLayoutView::zoomFull()
{
fitInView( scene()->sceneRect(), Qt::KeepAspectRatio );
@@ -275,7 +275,7 @@ class GUI_EXPORT QgsLayoutView: public QGraphicsView
* used to temporarily halt painting while exporting layouts.
* \note Not available in Python bindings.
*/
void setPaintingEnabled( bool enabled ) { mPaintingEnabled = enabled; } SIP_SKIP
void setPaintingEnabled( bool enabled ); SIP_SKIP

public slots:

0 comments on commit 70e7185

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