Loading [MathJax]/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
GraphicsView.cpp
1 #include "GraphicsView.h"
2 
3 #include <QResizeEvent>
4 #include <QSize>
5 
6 namespace Isis {
7  void GraphicsView::resizeEvent(QResizeEvent *event) {
8  if(event->oldSize().isEmpty()) {
9  QRectF sceneRect(scene()->itemsBoundingRect());
10  fitInView(sceneRect, Qt::KeepAspectRatio);
11  }
12  }
13 }
14 
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/13/2023 15:16:30