ksquares
gameboardview.cpp
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2006 by Matthew Williams <matt@milliams.com> * 00003 * * 00004 * This program is free software; you can redistribute it and/or modify * 00005 * it under the terms of the GNU General Public License as published by * 00006 * the Free Software Foundation; either version 2 of the License, or * 00007 * (at your option) any later version. * 00008 ***************************************************************************/ 00009 00010 #include "gameboardview.h" 00011 00012 GameBoardView::GameBoardView(QWidget *parent) : QGraphicsView(parent) 00013 { 00014 } 00015 00016 void GameBoardView::setBoardSize() 00017 { 00018 if (scene() != 0) 00019 fitInView(scene()->sceneRect(), Qt::KeepAspectRatio); 00020 } 00021 00022 #include "gameboardview.moc"
KDE 4.0 API Reference