File indexing completed on 2024-05-05 04:02:56

0001 /*
0002     SPDX-FileCopyrightText: 2010 Ni Hui <shuizhuyuanluo@126.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "gameview.h"
0008 
0009 GameView::GameView( QGraphicsScene* scene, QWidget* parent )
0010 : QGraphicsView(scene,parent)
0011 {
0012 }
0013 
0014 void GameView::resizeEvent( QResizeEvent *event )
0015 {
0016     Q_UNUSED(event)
0017     scene()->setSceneRect( rect() );
0018     setTransform( QTransform() );
0019 }