File indexing completed on 2022-09-27 13:19:28

0001 /*
0002     SPDX-FileCopyrightText: 2006 Matthew Williams <matt@milliams.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #include "gameboardview.h"
0008 
0009 GameBoardView::GameBoardView(QWidget *parent) : QGraphicsView(parent)
0010 {
0011 }
0012 
0013 void GameBoardView::setBoardSize()
0014 {
0015     if (scene() != nullptr) {
0016         fitInView(scene()->sceneRect(), Qt::KeepAspectRatio);
0017     }
0018 }
0019