彻底改版2.0
This commit is contained in:
18
netfriend/imageviewwindow/graphicsview.cpp
Normal file
18
netfriend/imageviewwindow/graphicsview.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "graphicsview.h"
|
||||
|
||||
GraphicsView::GraphicsView(QGraphicsScene *scene)
|
||||
: QGraphicsView(scene)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
GraphicsView::~GraphicsView()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void GraphicsView::resizeEvent(QResizeEvent *event)
|
||||
{
|
||||
QGraphicsView::resizeEvent(event);
|
||||
fitInView(sceneRect(), Qt::KeepAspectRatio);
|
||||
}
|
||||
Reference in New Issue
Block a user