ksquares
gameboardview.h
Go to the documentation of this file.
39 QSize minimumSizeHint() const {if(scene()==0) return QSize(); else return qobject_cast<GameBoardScene*>(scene())->minimumSizeHint();}
45 void resizeEvent(QResizeEvent* event) {if (scene() != 0) fitInView(scene()->sceneRect(), Qt::KeepAspectRatio); QGraphicsView::resizeEvent(event);}
QRectF sceneRect() const
QGraphicsScene * scene() const
virtual bool event(QEvent *event)
void setBoardSize()
Automatically resizes the board according to the users preferences. Deprecated for a bit...
Definition: gameboardview.cpp:16
QSize minimumSizeHint() const
Asks the scene through ( qobject_cast(scene()) ) for the smallest size it should be...
Definition: gameboardview.h:39
QObject * parent() const
void fitInView(const QRectF &rect, Qt::AspectRatioMode aspectRatioMode)
virtual void resizeEvent(QResizeEvent *event)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.