Isis 3.0 Programmer Reference
Back
|
Home
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
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
ISIS Support Center
File Modified: 07/12/2023 23:18:46