Skip to content

Commit

Permalink
+ resize scene size when resizing graphics view
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Mar 25, 2016
1 parent 05ed514 commit 287f3d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Gui/Quarter/QuarterWidget.cpp
Expand Up @@ -680,6 +680,9 @@ void QuarterWidget::resizeEvent(QResizeEvent* event)
SbViewportRegion vp(event->size().width(), event->size().height());
PRIVATE(this)->sorendermanager->setViewportRegion(vp);
PRIVATE(this)->soeventmanager->setViewportRegion(vp);
if (scene())
scene()->setSceneRect(QRect(QPoint(0, 0), event->size()));
QGraphicsView::resizeEvent(event);
}

/*!
Expand Down

0 comments on commit 287f3d9

Please sign in to comment.