File indexing completed on 2023-10-03 03:30:20

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     setMouseTracking(true);
0012 }
0013 
0014 void GameBoardView::setBoardSize()
0015 {
0016     if (scene() != nullptr) {
0017         fitInView(scene()->sceneRect(), Qt::KeepAspectRatio);
0018     }
0019 }
0020 
0021 #include "moc_gameboardview.cpp"