ksquares
GameBoardView Class Reference
#include <gameboardview.h>
Inheritance diagram for GameBoardView:

Detailed Description
Actual game board widget.A simple subclass of QGraphicsView simply to be able to resize the board according to user preferences.
Definition at line 25 of file gameboardview.h.
Public Slots | |
| void | setBoardSize () |
Public Member Functions | |
| GameBoardView (QWidget *parent=0) | |
| QSize | minimumSizeHint () const |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *event) |
Constructor & Destructor Documentation
| GameBoardView::GameBoardView | ( | QWidget * | parent = 0 |
) | [explicit] |
Constructor.
- Parameters:
-
parent the parent of the widget
Definition at line 12 of file gameboardview.cpp.
Member Function Documentation
| QSize GameBoardView::minimumSizeHint | ( | ) | const [inline] |
Asks the scene through ( qobject_cast<GameBoardScene*>(scene()) ) for the smallest size it should be.
Definition at line 39 of file gameboardview.h.
| void GameBoardView::resizeEvent | ( | QResizeEvent * | event | ) | [inline, protected] |
| void GameBoardView::setBoardSize | ( | ) | [slot] |
Automatically resizes the board according to the users preferences. Deprecated for a bit.
Definition at line 16 of file gameboardview.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference